EncyclopediaCategory.cs 884 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. namespace KairoEngine.UI.Encyclopedia
  6. {
  7. [System.Serializable]
  8. public class EncyclopediaCategory : MonoBehaviour
  9. {
  10. public string title = "Encyclopedia Category";
  11. public string titleSingle = "article";
  12. public string titlePlural = "articles";
  13. public string id = "Unique ID #123";
  14. public Sprite icon;
  15. public Sprite image;
  16. public GameObject buttonPrefab;
  17. public string layoutName = "default-view";
  18. public bool showSubMenu = true;
  19. public virtual List<EncyclopediaArticle> GetArticles()
  20. {
  21. return new List<EncyclopediaArticle>();
  22. }
  23. public virtual void UpdateArticles()
  24. {
  25. Debug.Log("Wrong class, no article here.");
  26. }
  27. }
  28. }