EncyclopediaController.cs 499 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. [HideMonoScript]
  6. public class EncyclopediaController : MonoBehaviour
  7. {
  8. public EncyclopediaUi encyclopediaUi;
  9. public GameObject categoryButtomPrefab;
  10. public List<EncyclopediaCategory> categories = new List<EncyclopediaCategory>();
  11. [Button("Build Menu")]
  12. public void BuildMenu()
  13. {
  14. if(encyclopediaUi == null) return;
  15. encyclopediaUi.Populate();
  16. }
  17. }