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