public virtual void OnHide() { group.alpha = 0.0f; UIInputController inputController = GetComponentInParent <UIInputController>(); if (inputController) { inputController.Deselect(); } }
public void Select() { if (inputController == null) { inputController = GetComponentInParent <UIInputController>(); } if (inputController == null) { throw new InvalidOperationException("UISelectable.Select() called without input controller"); } inputController.Select(this); }
public void OnShow() { inputController = GetComponent <UIInputController>(); group = GetComponent <UIPageGroup>(); if (DeviceController.inputModules.Length > 0) { inputController.SetInputModules(DeviceController.inputModules); group.ShowPage(1); } else { group.ShowPage(0); } }
private void Awake() { uiInputController = FindObjectOfType <UIInputController>(); uiMenue = FindObjectOfType <UIMenue>(); levelManager = FindObjectOfType <LevelManager>(); }
protected virtual void Start() { inputController = GetComponentInParent <UIInputController>(); inputController.Register(this); }
private void Awake() { UIInputController = FindObjectOfType <UIInputController>(); UIManager = FindObjectOfType <UIManager>(); }
public override void OnShow() { inputController = GetComponentInParent <UIInputController>(); inputController.SetInputModules(DeviceController.inputModules); base.OnShow(); }
protected override void DisposeCustomActions() { _instance = null; base.DisposeCustomActions(); }