Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        comm    = new string[1024];
        number  = new int[1024];
        comlist = new List <string>();
        list    = new List <GameObject>();
        LoadCSV.csvload();
        Text  = GameObject.Find("Text").GetComponent <Text>();
        retry = GameObject.Find("Canvas/retry");
        retry.SetActive(false);
        next = GameObject.Find("Canvas/next");
        //Debug.Log(next);
        stagename = SceneManager.GetActiveScene().name;
        if (stagename == "stage1Result" || stagename == "stage2Result")
        {
            next.SetActive(!next.activeSelf);
        }
        end = GameObject.Find("end");

        if (stagename == "stage3Result")
        {
            end.SetActive(false);
        }
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     com = new string[1024];
     LoadCSV.csvload();
 }