private void OnRuleAdded(GameRuleAddedEvent args)
 {
     foreach (var spawner in EntityManager.EntityQuery <ConditionalSpawnerComponent>())
     {
         spawner.RuleAdded(args);
     }
 }
Esempio n. 2
0
    private void OnGameRuleAdded(GameRuleAddedEvent ev)
    {
        if (ev.Rule.Configuration.Id != Prototype)
        {
            return;
        }

        Enabled = true;
    }
Esempio n. 3
0
    private void OnGameRuleAdded(GameRuleAddedEvent ev)
    {
        if (ev.Rule.ID != Prototype)
        {
            return;
        }

        Enabled = true;
    }