Example #1
0
        public void Execute(ChangeLevelSignal changeLevelSignal)
        {
            gameStateModel.CurrentLevelIndex = changeLevelSignal.Level;
            swarmModel.Create(gameStateModel.GetCurrentLevelConfig());
            playerShipModel.Reset();

            signalBus.Fire <StartLevelSignal>();
        }
Example #2
0
 private void HandleSingleplayerButtonClick()
 {
     ChangeLevelSignal.Dispatch(
         new ChangeLevelInfo
     {
         CallerScene = gameObject.scene.name,
         TargetScene = Constants.GameScene
     });
 }
Example #3
0
 public ScenesService(ChangeLevelSignal changeLevelSignal)
 {
     _changeLevelSignal = changeLevelSignal;
 }