Esempio n. 1
0
 void Start()
 {
     soundHero  = GameObject.Find("Hero").GetComponent <soundsScriptHero>();
     heroUI     = GameObject.Find("Hero").GetComponent <heroUIScript>();
     is_hit     = GameObject.Find("Hero").GetComponent <heroAttackScript>();
     animsprite = GameObject.Find("heroSprite").GetComponent <Animator>();
     levelhero  = GameObject.Find("Hero").GetComponent <levelHeroScript>();
 }
Esempio n. 2
0
    public void Initialise()
    {
        levelScript = GameObject.Find("Hero").GetComponent <levelHeroScript>();
        soundHero   = GameObject.Find("Hero").GetComponent <soundsScriptHero>();
        heroUI      = GameObject.Find("Hero").GetComponent <heroUIScript>();
        heroMove    = GameObject.Find("Hero").GetComponent <MoveHeroScript>();
        animsprite  = GameObject.Find("heroSprite").GetComponent <Animator>();

        push = false;
    }