Example #1
0
        private void OnLoaded()
        {
            GameObject hero = _gameFactory.CreateHero(GameObject.FindGameObjectWithTag(InitialPointTag));

            _gameFactory.CreateHud();

            CameraFollow(hero);

            _stateMachine.Enter <GameLoopState>();
        }
Example #2
0
 private void EnterLoadLevel()
 {
     _stateMachine.Enter <LoadLevelState, string>("ExperimentalScene");
 }