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

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

        Enabled = true;
    }