예제 #1
0
    public virtual void OnHide()
    {
        group.alpha = 0.0f;
        UIInputController inputController = GetComponentInParent <UIInputController>();

        if (inputController)
        {
            inputController.Deselect();
        }
    }
예제 #2
0
    public void Select()
    {
        if (inputController == null)
        {
            inputController = GetComponentInParent <UIInputController>();
        }

        if (inputController == null)
        {
            throw new InvalidOperationException("UISelectable.Select() called without input controller");
        }

        inputController.Select(this);
    }
예제 #3
0
    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);
        }
    }
예제 #4
0
 private void Awake()
 {
     uiInputController = FindObjectOfType <UIInputController>();
     uiMenue           = FindObjectOfType <UIMenue>();
     levelManager      = FindObjectOfType <LevelManager>();
 }
예제 #5
0
 protected virtual void Start()
 {
     inputController = GetComponentInParent <UIInputController>();
     inputController.Register(this);
 }
예제 #6
0
 private void Awake()
 {
     UIInputController = FindObjectOfType <UIInputController>();
     UIManager         = FindObjectOfType <UIManager>();
 }
예제 #7
0
 public override void OnShow()
 {
     inputController = GetComponentInParent <UIInputController>();
     inputController.SetInputModules(DeviceController.inputModules);
     base.OnShow();
 }
예제 #8
0
    protected override void DisposeCustomActions()
    {
        _instance = null;

        base.DisposeCustomActions();
    }