UnitySerializedReferenceUI/Samples~/ExamplesAchievementSysemAssembly/Achievements/DatabaseObject.cs
2022-12-28 14:56:13 +01:00

18 lines
475 B
C#

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;
}