public void OnAddButtonClicked(GeneVRInteractionUI.Data data) { GameObject newInput = Instantiate <GameObject>(displayUIPrefab); newInput.transform.SetParent(contentDisplay.transform); newInput.transform.localScale = Vector3.one; newInput.SetActive(true); GeneVRInteractionUI interaction = newInput.GetComponent <GeneVRInteractionUI>(); interaction.addInteractionParentUI = this; interaction.data = data; prefabUIList.Add(interaction); }
public void RemoveGeneInteraction(GeneVRInteractionUI.Data interaction) { genesInteractions.Remove(interaction); OnGenesInteractionsChange?.Invoke(genesInteractions); }
public void AddGeneInteraction(GeneVRInteractionUI.Data interaction) { genesInteractions.Add(interaction); OnGenesInteractionsChange?.Invoke(genesInteractions); }