//private isDead death; // Use this for initialization void Start() { health = GameObject.Find("Player").GetComponent<healthAndDamage> (); healthSR = GameObject.FindGameObjectWithTag ("healthBar").GetComponent<SpriteRenderer> (); player = GameObject.FindGameObjectWithTag ("Character Sprite").GetComponent<Animator> (); //death = player.GetComponent<isDead>(); }
//private isDead death; // Use this for initialization void Start() { health = GameObject.Find("Player").GetComponent <healthAndDamage> (); healthSR = GameObject.FindGameObjectWithTag("healthBar").GetComponent <SpriteRenderer> (); player = GameObject.FindGameObjectWithTag("Character Sprite").GetComponent <Animator> (); //death = player.GetComponent<isDead>(); }
// Use this for initialization void Start() { health = GameObject.FindGameObjectWithTag ("Player").GetComponent<healthAndDamage> (); }
// Use this for initialization void Start() { health = GameObject.FindGameObjectWithTag("Player").GetComponent <healthAndDamage> (); }