private void ServerChangeOwner(ulong newOwnerPlayerId)
{
if (!OwningNetWorker.IsServer || !allowOwnershipChange)
return;
NetworkingPlayer player = null;
player = OwningNetWorker.Players.Find(x => x.NetworkId == newOwnerPlayerId);
if (player != null || newOwnerPlayerId == 0)
RPC("AssignNewOwner", newOwnerPlayerId);
else
Debug.LogError("No such player with id " + newOwnerPlayerId + " currently connected.");
}