protected override void Deinitialize(ref EntityQuery group) { // Get all components of type, not just spawned/de-spawned ones var componentArray = Group.ToComponentArray <Fan>(); FanSystem.SetupFanComponents(componentArray); }
protected override void Initialize(ref ComponentGroup group) { // Get all components of type, not just spawned/de-spawned ones var componentArray = Group.GetComponentArray <Fan>(); FanSystem.SetupFanComponents(ref componentArray); }