DebugScenarioDraw.cs 627 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. private string advText = string.Empty;
  10. private string yotogiText = string.Empty;
  11. [Serializable]
  12. public struct DrawSet
  13. {
  14. public string text
  15. {
  16. get
  17. {
  18. return (!(this.label != null)) ? string.Empty : this.label.text;
  19. }
  20. set
  21. {
  22. if (this.label != null)
  23. {
  24. this.label.text = value;
  25. }
  26. }
  27. }
  28. [SerializeField]
  29. private UILabel label;
  30. public UIButton button;
  31. }
  32. }