Esempio n. 1
0
    public void PopUIController(UIControllerID inID)
    {
        var controller = GetUIController(inID);

        if (controller != null)
        {
            controller.Hide();
        }
    }
Esempio n. 2
0
 public UIController GetUIController(UIControllerID id)
 {
     foreach (UIController controller in _controllers)
     {
         if (controller.ID == id)
         {
             return(controller);
         }
     }
     return(null);
 }
Esempio n. 3
0
        public UIController GetUIController(UIControllerID inId)
        {
            try
            {
                UIController controller = _controllers.Find(x => x.Id == inId);
                return(controller);
            }
            catch (Exception)
            {
                Debug.LogError("Can't find ID " + inId);
            }

            return(null);
        }
Esempio n. 4
0
    public UIController GetUIController(UIControllerID inID)
    {
        try
        {
            var controller = mControllers.Find(x => x.ID == inID);
            return(controller);
        }
        catch (System.Exception)
        {
            UnityEngine.Debug.LogError("Can't find ID " + inID.ToString());
        }

        return(null);
    }
Esempio n. 5
0
        public void PushUIController(UIControllerID inId, bool bringToFront = false)
        {
            UIController controller = GetUIController(inId);

            if (controller != null)
            {
                controller.Show();

                if (bringToFront)
                {
                    // this will brint it to the front of the UI!
                    UIUtils.BringToFront(controller.gameObject);
                }
            }
        }
Esempio n. 6
0
        public void PopUIController(UIControllerID inId)
        {
            UIController controller = GetUIController(inId);

            controller?.Hide();
        }