Beispiel #1
0
    private void Awake()
    {
        fsm = new GameFSM();
        fsm.Initialize();

        instance = this;
    }
Beispiel #2
0
    private void Awake()
    {
        fsm = new GameFSM();
        fsm.Initialize();

        instance = FindObjectOfType <GameManager>();
    }
    public void Awake()
    {
        animals   = new List <Animal>();
        chickens  = new List <Chicken>();
        pathNodes = new List <GameObject>();
        spawners  = new List <AbstractSpawner>();

        fsm = new GameFSM();
        fsm.Initialize();
    }
Beispiel #4
0
    private void Awake()
    {
        instance = this;
        fsm      = new GameFSM();
        fsm.Initialize(this);

        fsm.AddState(GameStateType.Play, new PlayState());
        fsm.AddState(GameStateType.Win, new WinState());
        fsm.AddState(GameStateType.Dead, new DeadState());

        fsm.GotoState(GameStateType.Play);

        // level timer
        timer = startTime;
    }