Esempio n. 1
0
    // Buttons //

    void Awake()
    {
        GameObject f = GameObject.FindWithTag("fadeManager");

        if (f != null)
        {
            fm = f.GetComponent <fadeManager>();
        }
    }
Esempio n. 2
0
    void Awake()
    {
        au = GetComponent <AudioSource>();
        GameObject g = GameObject.FindWithTag("fadeManager");

        if (g != null)
        {
            fm = g.GetComponent <fadeManager>();
        }
        GameObject bg = Instantiate(Resources.Load("Characters/" + gameParameters.currentCharacter + "/theme"), new Vector3(0, 0, 0), Quaternion.identity) as GameObject;

        character = GameObject.FindWithTag("character");

        if (character != null)
        {
            cm = character.GetComponent <characterManager>();
        }
    }
Esempio n. 3
0
    void Awake()
    {
        anim  = GetComponent <Animator>();
        anim2 = buttons.GetComponent <Animator>();
        GameObject f = GameObject.FindWithTag("fadeManager");

        if (f != null)
        {
            fm = f.GetComponent <fadeManager>();
        }

        GameObject g = GameObject.FindWithTag("gameManager");

        if (g != null)
        {
            gm = g.GetComponent <gameManager>();
        }
        GameObject c = GameObject.FindWithTag("character");

        if (c != null)
        {
            cm = c.GetComponent <characterManager>();
        }
    }
 private void Awake()
 {
     Instance = this;
 }