예제 #1
0
    public void ThereIsOrThereIsNot()
    {
        GameObject       instantiatedChoice = Instantiate(choices);
        ChoicesBehaviour bridgeOrLabs       = instantiatedChoice.GetComponent <ChoicesBehaviour>();

        bridgeOrLabs.choiceTexts   = choiceLibrary.GetChoice(5);
        bridgeOrLabs.nextPlotSteps = 3;
        instantiatedChoice.transform.SetParent(renderCanvas.transform, false);
    }
예제 #2
0
    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);
    }
예제 #3
0
    public void SitOrGather()
    {
        ChoicesBehaviour sitOrGather = choices.GetComponent <ChoicesBehaviour>();

        sitOrGather.choiceTexts   = choiceLibrary.GetChoice(1);
        sitOrGather.nextPlotSteps = 4;
        GameObject instantiatedChoice = Instantiate(choices);

        instantiatedChoice.transform.SetParent(renderCanvas.transform, false);
    }