コード例 #1
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);
        }
コード例 #2
0
        public void Begin(EatAndDespawnSignal feedSignal, DeadDogSignal deadSignal, RestartSignal restartSignal, BeagleFacade beagle, PoolManager poolManager)
        {
            _feedSignal = feedSignal;
            _feedSignal.Listen(increaseSize);

            _deadSignal = deadSignal;

            _restartSignal = restartSignal;
            _restartSignal.Listen(setup);

            _beagle      = beagle;
            _poolManager = poolManager;
        }