Beispiel #1
0
    protected override void Die()
    {
        foreach (Effect effect in _effects)
        {
            effect.OnDeath(this);
        }

        if (_currentSkill != null)
        {
            _currentSkill.Break();
            _currentSkill = null;
        }
        if (!Corpseless)
        {
            _corpse.enabled = true;
            this.transform.GetChild(0).GetComponent <Renderer>().material.color = Color.blue;
            this.enabled = false;
        }
        else
        {
            base.Die();
        }
    }