private void OnLoaded() { GameObject hero = _gameFactory.CreateHero(GameObject.FindWithTag(InitialpointTag)); _gameFactory.CreateHud(); CameraFollow(hero); _gameStateMachine.Enter <GameLoopState>(); }
private void EnterLevelLoad() { _stateMachine.Enter <LoadLevelState, string>(ScenesPaths.LevelPath(1)); }
private void EnterLoadLevel() { _gameStateMachine.Enter <LoadLevelState, string>("Main"); }