Ejemplo n.º 1
0
    public virtual void Ondeath(float x, Skill f, Actor a = null)
    {
        OnDeath(x, f);
        if (GameManager.CurrentBattle.Foes.Contains(this))
        {
            GameManager.CurrentBattle.Foes.Remove(this);
        }
        if (GameManager.CurrentBattle.Players.Contains(this))
        {
            GameManager.CurrentBattle.Players.Remove(this);
        }

        CurrentTile.OnQuitting();

        UnityEngine.Debug.Log(this.Name + " is death");
    }