Ejemplo n.º 1
0
 private void Death(Damage lastDamage)
 {
     if (OnKillEvent != null)
     {
         OnKillEvent.Invoke(this, lastDamage);
     }
     Destroy(gameObject);
 }
Ejemplo n.º 2
0
    private void Death(Damage lastDamage)
    {
        if (OnKillEvent != null)
        {
            OnKillEvent.Invoke(this, lastDamage);
        }
        Destroy(gameObject);

        if (deathVfx)
        {
            GameObject.Instantiate(deathVfx, transform.position, Quaternion.identity);
        }
    }
 public override void Kill()
 {
     Debug.WriteLine("LobbyDialog killed!");
     OnKillEvent?.Invoke();
 }
Ejemplo n.º 4
0
 public override void Kill()
 {
     OnKillEvent?.Invoke();
 }
Ejemplo n.º 5
0
 public void EmitKillEvent(KillEvent ev)
 {
     OnKillEvent?.Invoke(this, new Ps2EventArgs <KillEvent>(ev));
 }