Exemple #1
0
        public SirenToken BeginSignalSiren()
        {
            if (_currentToken != null)
            {
                return(_currentToken);
            }
            if (_activeSensors == null)
            {
                _activeSensors = new HashSet <AudibleSensor>();
            }

            _currentToken = new SirenToken(this);
            (this as IUpdateable).Update();
            GameLoopEntry.RegisterNextUpdate(this);
            return(_currentToken);
        }