Exemple #1
0
	protected virtual void ReleaseSouls(Owner owner)
	{
		if (owner != null)
			owner.AddSoul(transform.position);
	}
Exemple #2
0
	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;
	}