public void BridgeOrLabs() { GameObject instantiatedChoice = Instantiate(choices); ChoicesBehaviour bridgeOrLabs = instantiatedChoice.GetComponent <ChoicesBehaviour>(); bridgeOrLabs.choiceTexts = choiceLibrary.GetChoice(4); bridgeOrLabs.nextPlotSteps = 1; instantiatedChoice.transform.SetParent(renderCanvas.transform, false); }
public void LookOrWalk() { ChoicesBehaviour lookOrWalk = choices.GetComponent <ChoicesBehaviour>(); lookOrWalk.choiceTexts = choiceLibrary.GetChoice(0); lookOrWalk.nextPlotSteps = 1; GameObject instantiatedChoice = Instantiate(choices); instantiatedChoice.transform.SetParent(renderCanvas.transform, false); }