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