Ejemplo n.º 1
0
        private void OnLoaded()
        {
            GameObject hero = _gameFactory.CreateHero(GameObject.FindWithTag(InitialpointTag));

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