Example #1
0
    private void Start()
    {
        _stop = GameObject.Find("Trigger").GetComponent <TriggerStop>();

        /*_comeIn = GameObject.Find("YES").GetComponent<Button>();
         * _goAway = GameObject.Find("NO").GetComponent<Button>();
         * _sentence = GameObject.Find("DialogueManager").GetComponent<DialogueManager>();
         *
         * //continueButton = GameObject.FindGameObjectWithTag("Button");
         *
         * textDisplay = GameObject.Find("Dialogue Text").GetComponent<TextMeshProUGUI>();
         * StartCoroutine(Type());
         *
         * _comeIn.onClick.AddListener(NextSentence);
         * _goAway.onClick.AddListener(NextSentence);*/
    }
 // Start is called before the first frame update
 void Start()
 {
     Stop = GameObject.Find("Trigger").GetComponent <TriggerStop>();
     Debug.Log("Move the character forward");
 }