ReferenceAView.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. using TMPro;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. namespace Olympus
  5. {
  6. // Authored, serialized uGUI controls. Runtime code only binds data and callbacks.
  7. public sealed class ReferenceAView : MonoBehaviour
  8. {
  9. public bool trial;
  10. public TextMeshProUGUI playerName, balance, timer, round, heading, clue;
  11. public Image playerAvatar, question, timerFill, feedbackPanel;
  12. public Image[] rivalAvatars;
  13. public TextMeshProUGUI[] rivalScores, inventory;
  14. public Button[] realmButtons, itemButtons, letterButtons;
  15. public RectTransform letterPool, easel, answerRow;
  16. public TextMeshProUGUI answerText;
  17. public RevealGraphic reveal;
  18. public GameObject checkinDot;
  19. public ScoreFloat[] rivalGains;
  20. public TextMeshProUGUI[] leaderboardNames, leaderboardScores, leaderboardRanks;
  21. public Image[] leaderboardAvatars;
  22. public Button FindButton(string key)
  23. {
  24. foreach(var b in GetComponentsInChildren<Button>(true))if(b.name==key)return b;
  25. return null;
  26. }
  27. }
  28. }