Ejemplo n.º 1
0
    public void DismissAction()
    {
        MenuStateManager.Instance.CurrentState = MenuStateManager.MenuState.Hidden;
        // prevents instantiated duplicate orbs
        if (!bridgeInited)
        {
            //TODO tie this to StateManager to abstract out direct function calls
            hueBridgeManager.InitHueBridgeManager();
        }

        StateManager.Instance.CurrentState = StateManager.HueAppState.Ready;
        SoundManager.instance.PlayNotificationPopup(buttonClickedSound);

        HidePanelSubItems();
        panelBorderGO.GetComponent <Image>().enabled       = false;
        panelBorderGO.GetComponent <BoxCollider>().enabled = false;
    }
Ejemplo n.º 2
0
    void Start()
    {
        Debug.Log("NotifMgr Start");
        if (transform.GetChild(0).name == "Canvas")
        {
            canvas         = transform.GetChild(0).gameObject.GetComponent <Canvas>();
            canvas.enabled = false;
        }
        else
        {
            Debug.Log("No child Canvas was found. Please add one to use notification system.");
        }

        // TODO create a more reliable solution - used to prevent
        hueBridgeGO      = GameObject.Find("AppManager");
        hueBridgeManager = hueBridgeGO.GetComponent <HueBridgeManager>();
        hueBridgeManager.InitHueBridgeManager();
    }