Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }