Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (GamepadSelectedControl.Instance == this)
     {
         GamepadSelectedControl.Instance = null;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     GamepadSelectedControl.Instance = this;
     this._gamepadPopupInput         = (base.GetComponent <GamepadInputToSelectedPopup>() ?? base.gameObject.AddComponent <GamepadInputToSelectedPopup>());
 }