/// <summary> /// 移除角色 /// </summary> /// <param name="role">角色对象</param> public void RemoveRole(RoleBase role) { roleList.Remove(role); space.Children.Remove(role); RemoveShadow(role.ID); role.ClearAttacher(); role.Dispose(role, null); }
/// <summary> /// 移除角色 /// </summary> /// <param name="role">角色对象</param> public void RemoveRole(RoleBase role) { roleList.Remove(role); space.Children.Remove(role); RemoveShadow(role.ID); role.ClearAttacher(); role.Dispose(role, null); }