コード例 #1
0
    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);
    }
コード例 #2
0
 public void RemoveGeneInteraction(GeneVRInteractionUI.Data interaction)
 {
     genesInteractions.Remove(interaction);
     OnGenesInteractionsChange?.Invoke(genesInteractions);
 }
コード例 #3
0
 public void AddGeneInteraction(GeneVRInteractionUI.Data interaction)
 {
     genesInteractions.Add(interaction);
     OnGenesInteractionsChange?.Invoke(genesInteractions);
 }