// Start is called before the first frame update void Start() { ns = gameObject.GetComponent <NodeSpawning>(); Answer1.onClick.AddListener(Ans1); Answer2.onClick.AddListener(Ans2); Answer3.onClick.AddListener(Ans3); Answer4.onClick.AddListener(Ans4); Answers[0] = Answer1; Answers[1] = Answer2; Answers[2] = Answer3; Answers[3] = Answer4; foreach (GameObject g in GameObject.FindGameObjectsWithTag("GameController")) { switch (g.name) { case "ConsistentObject": ConsistentObj = g.GetComponent <ConsistentObject>(); break; default: break; } } ResultReturnButton.onClick.AddListener(ResultReturnClick); }
// Start is called before the first frame update void Start() { ns = gameObject.GetComponent <NodeSpawning>(); foreach (GameObject g in GameObject.FindGameObjectsWithTag("GameController")) { switch (g.name) { case "ConsistentObject": ConsistentObj = g.GetComponent <ConsistentObject>(); break; default: break; } } RestConfirmButton.onClick.AddListener(RestConfirmClick); }
// Start is called before the first frame update void Start() { ns = gameObject.GetComponent <NodeSpawning>(); EventConfirmButton.onClick.AddListener(EventConfirmClick); }