예제 #1
0
 private void Construct(GameStateChangedSignal gameStateChangedSignal, StartGameSignal startGameSignal,
                        ReturnToMenuSignal returnToMenuSignal)
 {
     _gameStateChangedSignal = gameStateChangedSignal;
     _startGameSignal        = startGameSignal;
     _returnToMenuSignal     = returnToMenuSignal;
 }
예제 #2
0
 public override void Enter()
 {
     _gameStateChangedSignal.Fire(this);
     _returnToMenuSignal += OnReturnToMenu;
 }
예제 #3
0
 public override void Exit()
 {
     _returnToMenuSignal -= OnReturnToMenu;
 }
예제 #4
0
 public void Construct(GameStateChangedSignal gameStateChangedSignal, ReturnToMenuSignal returnToMenuSignal)
 {
     _gameStateChangedSignal = gameStateChangedSignal;
     _returnToMenuSignal     = returnToMenuSignal;
 }