示例#1
0
        void OnDisable()
        {
            UnregisterService();

            if (m_sceneManager.isRegistered())
            {
                m_sceneManager.Reference.OnAboutToLoadNewScene -= OnAboutToLoadScene;
            }
        }
示例#2
0
    void Update()
    {
        if (!m_inputService.isRegistered())
        {
            return;
        }

        if (m_inputService.Reference.PressedCancel())
        {
            Debug.Log("CANCEL");
        }

        if (m_inputService.Reference.PressedMenu())
        {
            Debug.Log("MENU");
        }

        if (m_inputService.Reference.PressedSelect())
        {
            Debug.Log("SELECT");
        }
    }