Exemple #1
0
        private void TrySpawn()
        {
            if (_gameRules.Count == 0)
            {
                Spawn();
                return;
            }

            foreach (var rule in GameRules)
            {
                if (!_gameTicker.HasGameRule(rule))
                {
                    continue;
                }
                Spawn();
                return;
            }
        }