void Start() { isLoading = false; PlayFabClientAPI.GetUserCombinedInfo(new GetUserCombinedInfoRequest(), OnGetUserCurrency, OnPlayFabError); playerNameText.text = LoginScript.getUsername(); if (isAllExecuted) { showMenuAgain(); isAllExecuted = false; } else { ExecutionOrder = 0; InitializationNext(); } }
public override void OnJoinedRoom() { OnLobbyJoin(); if (!PhotonNetwork.isMasterClient) { ActivateReadyButton(); skinID2 = PlayFabGameBridge.Instance.currentSkin.ItemId; username2 = LoginScript.getUsername(); Player2Info(skinID2, username2); Debug.Log("Player2 sent his skinID and username"); photonView.RPC("RPCOtherClientSkin", PhotonTargets.OthersBuffered, skinID2, username2); } else { skinID1 = PlayFabGameBridge.Instance.currentSkin.ItemId; username1 = LoginScript.getUsername(); Player1Info(skinID1, username1); } }