Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 //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>();
 }
Ejemplo n.º 2
0
    //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>();
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     health = GameObject.FindGameObjectWithTag ("Player").GetComponent<healthAndDamage> ();
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     health = GameObject.FindGameObjectWithTag("Player").GetComponent <healthAndDamage> ();
 }