UnitySerializedReferenceUI/Samples~/ExamplesAchievementSysemAssembly/Achievements/DatabaseObject.cs

18 lines
475 B
C#
Raw Permalink Normal View History

2022-12-28 14:56:13 +01:00
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "DatabaseObject", menuName = "DatabaseObject")]
public class DatabaseObject : ScriptableObject
{
public List<Achievement> achievements = new List<Achievement>();
}
[System.Serializable]
public class Achievement
{
public string name;
public Sprite icon;
[SerializeReference, SerializeReferenceButton]
public IPlatform[] platformsSettings = null;
public Unlock unlock;
}