您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
 
 
 

49 行
707 B

  1. using System;
  2. using UnityEngine;
  3. public class GUIView : MonoBehaviour
  4. {
  5. protected bool IsOpen
  6. {
  7. get
  8. {
  9. return this._isOpen;
  10. }
  11. }
  12. public virtual void Init()
  13. {
  14. this._localGO = base.gameObject;
  15. this._localGO.SetActive(true);
  16. this.Close();
  17. }
  18. public virtual void Open()
  19. {
  20. base.gameObject.SetActive(true);
  21. this._isOpen = true;
  22. }
  23. public virtual void Open(State oldState)
  24. {
  25. this.Open();
  26. }
  27. public virtual void Close()
  28. {
  29. base.gameObject.SetActive(false);
  30. this._isOpen = false;
  31. }
  32. public virtual void Close(State newState)
  33. {
  34. this.Close();
  35. }
  36. public State State;
  37. protected GameObject _localGO;
  38. private bool _isOpen;
  39. }