public void RemoveVrInteraction(BoidInteraction i) { if (i != null) { RemoveVrInteractionData(i.data); vRInteractions.Remove(i); OnVRInteractionsChange?.Invoke(vRInteractions); } else { RemoveVrInteractionData(null); vRInteractions.Remove(i); OnVRInteractionsChange?.Invoke(vRInteractions); } }
public void addVrInteraction(BoidInteraction interaction, bool newData) { if (newData) { if (interaction != null) { addVrInteractionData(interaction.data); } else { addVrInteractionData(null); } } vRInteractions.Add(interaction); if (interaction != null) { OnVRInteractionsChange?.Invoke(vRInteractions); } }
public void ChangeVrName() { OnVRInteractionsChange?.Invoke(vRInteractions); }