Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }