public void RuleStarted(ConditionalSpawnerComponent component, GameRuleStartedEvent obj) { if (component.GameRules.Contains(obj.Rule.ID)) { Spawn(component); } }
private void OnRuleStarted(GameRuleStartedEvent args) { foreach (var spawner in EntityManager.EntityQuery <ConditionalSpawnerComponent>()) { RuleStarted(spawner, args); } }
private void OnGameRuleStarted(GameRuleStartedEvent ev) { if (ev.Rule.Configuration.Id != Prototype) { return; } Started(ev.Rule.Configuration); }
private void OnGameRuleStarted(GameRuleStartedEvent ev) { if (ev.Rule.ID != Prototype) { return; } Started(); }