Example #1
0
    void Start()
    {
        GameObject text1 = GameObject.Find("ManagerVB1");
        GameObject text2 = GameObject.Find("ManagerVB2");

        if (text1 != null)
        {
            vbFile1 = text1.GetComponent <ExplorerVB>();
        }
        if (text2 != null)
        {
            vbFile2 = text2.GetComponent <ExplorerVB>();
        }
        Button b = colorButton.GetComponent <Button>();

        b.onClick.AddListener(colorbuttonClicked);
    }
Example #2
0
    void Start()
    {
        GameObject text1      = GameObject.Find("ManagerVB1");
        GameObject text2      = GameObject.Find("ManagerVB2");
        GameObject outputText = GameObject.Find("OutputTextVB");

        if (text1 != null)
        {
            vbFile1 = text1.GetComponent <ExplorerVB>();
        }
        if (text2 != null)
        {
            vbFile2 = text2.GetComponent <ExplorerVB>();
        }
        if (outputText != null)
        {
            textOP = outputText.GetComponent <Text>();
        }
    }
Example #3
0
    void Start()
    {
        GameObject text1       = GameObject.Find("ManagerVB1");
        GameObject text2       = GameObject.Find("ManagerVB2");
        GameObject textCompare = GameObject.Find("ComparisonTextVB");

        if (text1 != null)
        {
            vbFile1 = text1.GetComponent <ExplorerVB>();
        }
        if (text2 != null)
        {
            vbFile2 = text2.GetComponent <ExplorerVB>();
        }
        if (textCompare != null)
        {
            comparisonText = textCompare.GetComponent <Text>();
        }
    }
Example #4
0
    void Start()
    {
        GameObject title1 = GameObject.Find("TitleVB1");
        GameObject title2 = GameObject.Find("TitleVB2");
        GameObject text1  = GameObject.Find("ManagerVB1");
        GameObject text2  = GameObject.Find("ManagerVB2");

        if (text1 != null)
        {
            vbFile1 = text1.GetComponent <ExplorerVB>();
        }
        if (text2 != null)
        {
            vbFile2 = text2.GetComponent <ExplorerVB>();
        }
        if (title1 != null)
        {
            fileName1 = title1.GetComponent <Text>();
        }
        if (title2 != null)
        {
            fileName2 = title2.GetComponent <Text>();
        }
    }