public void Execute(ChangeLevelSignal changeLevelSignal) { gameStateModel.CurrentLevelIndex = changeLevelSignal.Level; swarmModel.Create(gameStateModel.GetCurrentLevelConfig()); playerShipModel.Reset(); signalBus.Fire <StartLevelSignal>(); }
private void HandleSingleplayerButtonClick() { ChangeLevelSignal.Dispatch( new ChangeLevelInfo { CallerScene = gameObject.scene.name, TargetScene = Constants.GameScene }); }
public ScenesService(ChangeLevelSignal changeLevelSignal) { _changeLevelSignal = changeLevelSignal; }