Exemple #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>();
 }
Exemple #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;
    }
Exemple #3
0
 void Start()
 {
     soundmonstre = GetComponent <monstreSoundsScript>();
     GetComponent <monstreScript>().Initialise();
     levelScript = GameObject.Find("Hero").GetComponent <levelHeroScript>();
     soundHero   = GameObject.Find("Hero").GetComponent <soundsScriptHero>();
     Debug.Log(GetComponent <monstreScript>().getPower());
     puissance = GetComponent <monstreScript>().getPower();
     mtype     = GetComponent <monstreScript>().getMType();
     ok_baby   = true;
 }