// Use this for initialization
    void Start()
    {
        player         = FindObjectOfType <BasePlayerStats>();
        opposingHealth = player.GetComponent <Health>();


        GetComponent <Health>().OnDeath += Die;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player     = FindObjectOfType <BasePlayerStats>();
     opposingHP = player.GetComponent <Health>();
 }