示例#1
0
    // Use this for initialization
    void Start()
    {
        start = GameObject.Find("Start").GetComponent(typeof(startButtonScript)) as startButtonScript;
        exit  = GameObject.Find("Exit").GetComponent(typeof(exitButtonScript)) as exitButtonScript;
        title = GameObject.Find("Title").GetComponent(typeof(titleScript)) as titleScript;
        wiz   = GameObject.Find("WizardButton").GetComponent(typeof(wizardButtonScript)) as wizardButtonScript;
        war   = GameObject.Find("WarriorButton").GetComponent(typeof(warriorButtonScript)) as warriorButtonScript;
        arc   = GameObject.Find("ArcherButton").GetComponent(typeof(archerButtonScript)) as archerButtonScript;
        cts   = GameObject.Find("ClassText").GetComponent(typeof(classTextScript)) as classTextScript;


        state = 0;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        cts     = (classTextScript)GameObject.Find("ClassText").GetComponent(typeof(classTextScript));
        visible = false;
        faded   = false;
        Color newColor = guiTexture.color;

        newColor.a       = 0f;
        guiTexture.color = newColor;
        x      = -0.44f;
        y      = -0.39f;
        width  = 0.07f;
        height = 0.3f;
    }