public override IInteraction[] GenerateInteractions(InteractionEvent interactionEvent) { List <IInteraction> interactions = new List <IInteraction>(); StoreInteraction storeInteraction = new StoreInteraction(); ViewContainerInteraction view = new ViewContainerInteraction { MaxDistance = range }; DisposeInteraction disposeInteraction = new DisposeInteraction(); if (!busy) { interactions.Insert(0, storeInteraction); interactions.Insert(1, view); interactions.Insert(2, disposeInteraction); } return(interactions.ToArray()); }
public override IInteraction[] GenerateInteractions(InteractionEvent interactionEvent) { List <IInteraction> interactions = new List <IInteraction>(); StoreInteraction storeInteraction = new StoreInteraction(); // Sets the interaction range ViewContainerInteraction view = new ViewContainerInteraction { MaxDistance = range }; DisposeInteraction disposeInteraction = new DisposeInteraction(); // if we arent purging something already, we create the interactions if (!busy) { interactions.Insert(0, storeInteraction); interactions.Insert(1, view); interactions.Insert(2, disposeInteraction); } return(interactions.ToArray()); }