Beispiel #1
0
    private void Awake()
    {
        listener     = new List <IPauseListener>();
        totalTime    = 0f;
        totalTime   += GlobalSettingsManager.GetTotalGameTime();
        currentState = GlobalSettingsManager.firstState;

        Timer = totalTime;
        PlantDestroyer.Setup(this);

        new LevelBalancing();
        //fsm = this.GetComponent<FiniteStateMachine>();
        DebugMode = GlobalSettingsManager.debugActive;
        if (!DebugMode)
        {
            debugInfo.gameObject.SetActive(false);
        }

        mBC      = canvas.GetComponent <MenuButtonController>();
        menuOpen = mBC.inMenu;
    }