예제 #1
0
    // 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);
    }
예제 #2
0
    // 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);
    }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        ns = gameObject.GetComponent <NodeSpawning>();

        EventConfirmButton.onClick.AddListener(EventConfirmClick);
    }