public void OnResurrect(OnResurrectEventData e)
    {
        //create a zombie goblin spearman and destroy the corpse
        GameObject g = Instantiate(ResurrectAs);

        g.transform.position = transform.position;
        LockEmitter.Emit(
            new OnLockReleaseEventData()
            );
        Destroy(gameObject);
    }
Beispiel #2
0
 public void Emit(OnResurrectEventData e)
 {
     Listener.OnLockAttain.Invoke(e);
 }