public bool RemoveExpectPlayer(Player player, bool reqSyncData = true) { if (SalinTokens.ValidateTokenUserToken() == false) { return(false); } if (ExpectPlayerIdList.Contains(player.userId) == false) { Debug.Log("Target player is not in the ExpectPlayerList"); return(false); } return(ExpectPlayerIdList.Remove(player.userId)); }
public bool AddExpectPlayer(Player player, bool reqSyncData = true) { if (SalinTokens.ValidateTokenUserToken() == false) { return(false); } if (ExpectPlayerIdList.Contains(player.userId) == true) { Debug.Log("Target player is already contains ExpectPlayerList"); return(false); } return(ExpectPlayerIdList.Add(player.userId)); }