protected virtual void ReleaseSouls(Owner owner) { if (owner != null) owner.AddSoul(transform.position); }
public virtual void Release(Owner byOwner) { if (Owner != null) { //Remove Minion from Owner Owner.ReleaseMinion(this); } Owner = null; if (byOwner != null) { //Give Killer Soul byOwner.AddSoul(Body.position); } Collider.enabled = false; Velocity = Vector2.zero; }