Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        wm = GameObject.Find("GameManager").GetComponent <WaveManager>();

        healthScript = GetComponent <PlayerHealth_New>();
        healthScript.EventRespawn += EnablePlayer;
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     healthScript           = GetComponent <PlayerHealth_New>();
     healthScript.EventDie += DisablePlayer;
 }