예제 #1
0
        public void Begin(DeadDogSignal deadSignal, TextManager displayText, RestartSignal restartSignal)
        {
            _deadSignal = deadSignal;
            _deadSignal.Listen(die);

            _restartSignal = restartSignal;
            _displayText   = displayText;
        }
예제 #2
0
        public void Begin(PoolManager poolManager, DeadDogSignal deadSignal, RestartSignal restartSignal, TextManager displayText)
        {
            _poolManager = poolManager;
            _displayText = displayText;

            _deadSignal = deadSignal;
            _deadSignal.Listen(stopCreation);

            _restartSignal = restartSignal;
            _restartSignal.Listen(startCreation);
        }