// Start is called before the first frame update void Start() { Button click1 = TalkButton1.GetComponent <Button>(); Button click2 = TalkButton2.GetComponent <Button>(); Button click3 = TalkButton3.GetComponent <Button>(); Button click4 = TalkButton4.GetComponent <Button>(); Button click5 = TalkButton5.GetComponent <Button>(); Button click6 = TalkButton6.GetComponent <Button>(); Button click7 = TalkButton7.GetComponent <Button>(); Button click8 = TalkButton8.GetComponent <Button>(); Button click9 = TalkButton9.GetComponent <Button>(); Button click10 = MoveButton.GetComponent <Button>(); click1.onClick.AddListener(goodChoice); click2.onClick.AddListener(badChoice); click3.onClick.AddListener(conciliateChoice); click4.onClick.AddListener(coerciveChoice); click5.onClick.AddListener(observation); click6.onClick.AddListener(behavior); click7.onClick.AddListener(pass); click8.onClick.AddListener(arrest); click9.onClick.AddListener(dead); click10.onClick.AddListener(dead); //click4.onClick.AddListener(envisiable); startMsg(); }
void Start() { Button click1 = TalkButton1.GetComponent <Button>(); Button click2 = TalkButton2.GetComponent <Button>(); Button click3 = TalkButton3.GetComponent <Button>(); Button click4 = MoveButton.GetComponent <Button>(); click1.onClick.AddListener(envisiable); click1.onClick.AddListener(goodChoice); click2.onClick.AddListener(envisiable); click2.onClick.AddListener(badChoice); click3.onClick.AddListener(envisiable); click3.onClick.AddListener(restChoice); click4.onClick.AddListener(envisiable); Talk(); }