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>(); }
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; }
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; }