DebugScenarioDraw.cs 684 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using UnityEngine;
  3. public class DebugScenarioDraw : MonoBehaviour
  4. {
  5. [SerializeField]
  6. private DebugScenarioDraw.DrawSet advDrawSet;
  7. [SerializeField]
  8. private DebugScenarioDraw.DrawSet yotogiDrawSet;
  9. [SerializeField]
  10. private UIButton yotogiRRLockButton;
  11. private string advText = string.Empty;
  12. private string yotogiText = string.Empty;
  13. [Serializable]
  14. public struct DrawSet
  15. {
  16. public string text
  17. {
  18. get
  19. {
  20. return (!(this.label != null)) ? string.Empty : this.label.text;
  21. }
  22. set
  23. {
  24. if (this.label != null)
  25. {
  26. this.label.text = value;
  27. }
  28. }
  29. }
  30. [SerializeField]
  31. private UILabel label;
  32. public UIButton button;
  33. }
  34. }