AchievementStatus.cs 602 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. namespace KairoEngine.Achievements
  6. {
  7. [System.Serializable]
  8. public class AchievementStatus
  9. {
  10. [HorizontalGroup("data", 0.015f), HideLabel, ReadOnly] public bool unlocked = false;
  11. [HorizontalGroup("data", 0.985f), HideLabel, ReadOnly] public AchievementBase achievement;
  12. public AchievementStatus(AchievementBase achievement, bool unlocked)
  13. {
  14. this.achievement = achievement;
  15. this.unlocked = unlocked;
  16. }
  17. }
  18. }