Beispiel #1
0
    void Awake()
    {
        managers = new Managers();
        managers.Init();

        managers.Game.ActivateGame();
    }
Beispiel #2
0
    private void Init()
    {
        if (Managers.Scene.GetActiveSceneName() == "RollABall")
        {
            Managers.Input.m_keyAction -= OnEnterNextScene;
            Managers.Input.m_keyAction += OnEnterNextScene;
            Time.timeScale              = 1.0f; //시간 배율 1, 정상 속도로 재생

            //판넬 비활성화해서 가지고 있기
            m_panelStageClear.SetActive(false);

            m_maxCoinCount     = GameObject.FindGameObjectsWithTag("Coin").Length;
            m_currentCoinCount = m_maxCoinCount;
        }
        else if (Managers.Scene.GetActiveSceneName() == "MatchCube")
        {
            Managers.Init();
            m_isGameOver = false;
            m_panelResult.SetActive(false);
            return;
        }
    }