예제 #1
0
        private void OnLoaded()
        {
            GameObject hero = _gameFactory.CreateHero(GameObject.FindWithTag(InitialpointTag));

            _gameFactory.CreateHud();
            CameraFollow(hero);
            _gameStateMachine.Enter <GameLoopState>();
        }
예제 #2
0
 private void EnterLevelLoad()
 {
     _stateMachine.Enter <LoadLevelState, string>(ScenesPaths.LevelPath(1));
 }
예제 #3
0
 private void EnterLoadLevel()
 {
     _gameStateMachine.Enter <LoadLevelState, string>("Main");
 }