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

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