1234567891011121314151617181920212223242526272829303132 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Sirenix.OdinInspector;
- namespace KairoEngine.UI.Encyclopedia
- {
- [System.Serializable]
- public class EncyclopediaCategory : MonoBehaviour
- {
- public string title = "Encyclopedia Category";
- public string titleSingle = "article";
- public string titlePlural = "articles";
- public string id = "Unique ID #123";
- public Sprite icon;
- public Sprite image;
- public GameObject buttonPrefab;
- public string layoutName = "default-view";
- public bool showSubMenu = true;
- public virtual List<EncyclopediaArticle> GetArticles()
- {
- return new List<EncyclopediaArticle>();
- }
- public virtual void UpdateArticles()
- {
- Debug.Log("Wrong class, no article here.");
- }
- }
- }
|