Skip to content

Commit

Permalink
chore: added description for future proofing
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed May 9, 2024
1 parent 1094960 commit 3925d37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Assets/PlayroomKit/PlayroomKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ private static void InvokeRpcRegisterCallBack(string dataJson, string senderJson
}


// Getting the name of called Rpc event
string name = GetState<string>("rpcCalledEventName");

if (!rpcCalledEvents.Contains(name))
Expand All @@ -1104,7 +1105,7 @@ private static void InvokeRpcRegisterCallBack(string dataJson, string senderJson

public static void RpcCall(string name, object data, RpcMode mode, Action callbackOnResponse)
{

// setting to sync the event name with other players
SetState("rpcCalledEventName", name, reliable: true);


Expand Down Expand Up @@ -1137,8 +1138,6 @@ private static void InvokeOnResponseCallback()
{
var namesToRemove = new List<string>();

var n = GetState<string>("rpcCalledEventName");

foreach (var name in rpcCalledEvents)
{
try
Expand Down

0 comments on commit 3925d37

Please sign in to comment.