Exemplo n.º 1
0
 public LoadLevelState(GameStateMachine gameStateMachine, SceneLoader sceneLoader, LogicCurtain curtain, IGameFactory gameFactory)
 {
     _gameStateMachine = gameStateMachine;
     _sceneLoader      = sceneLoader;
     _curtain          = curtain;
     _gameFactory      = gameFactory;
 }
Exemplo n.º 2
0
 public GameStateMachine(SceneLoader sceneLoader, LogicCurtain curtain, AllServices services)
 {
     _states = new Dictionary <Type, IExitableState>
     {
         [typeof(BootstrapState)] = new BootstrapState(this, sceneLoader, services),
         [typeof(LoadLevelState)] = new LoadLevelState(this, sceneLoader, curtain, services.Single <IGameFactory>()),
         [typeof(GameLoopState)]  = new GameLoopState(this),
     };
 }
Exemplo n.º 3
0
 public Game(ICoroutineRunner coroutineRunner, LogicCurtain curtain)
 {
     GameStateMachine = new GameStateMachine(new SceneLoader(coroutineRunner), curtain, AllServices.Container);
 }