public void EndDirector() { isDeleting = true; if (contentGroup != null) { contentGroup.DeleteGroup(); } if (this is GuildleveDirector) { ((GuildleveDirector)this).EndGuildleveDirector(); } List <Actor> players = GetPlayerMembers(); foreach (Actor player in players) { ((Player)player).RemoveDirector(this); } members.Clear(); isDeleted = true; Server.GetWorldManager().GetZone(zoneId).DeleteDirector(actorId); }