Exemplo n.º 1
0
    public virtual void OnHide()
    {
        group.alpha = 0.0f;
        UIInputController inputController = GetComponentInParent <UIInputController>();

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

        base.DisposeCustomActions();
    }