Skip to content

Commit

Permalink
chore: removed duplicate, unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Nov 25, 2024
1 parent 88525c9 commit b207723
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Assets/PlayroomKit/modules/Player/PlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ public void Kick(Action onKickCallBack = null)


private static Action<string> onSetState;

public void WaitForState(string stateKey, Action<string> onStateSetCallback = null)
{
onSetState = onStateSetCallback;
}

[MonoPInvokeCallback(typeof(Action<string>))]
private static void InvokeKickCallBack(string data)
{
Expand All @@ -179,20 +180,13 @@ public void OnQuitWrapperCallback(string id)
callback?.Invoke(id);
}

public void InvokeOnQuitWrapperCallback(string id)
{
OnQuitWrapperCallback(id);
}

private bool GetPlayerStateBoolById(string key)
{
var stateValue = _interop.GetPlayerStateIntWrapper(_id, key);
return stateValue == 1 ? true :
stateValue == 0 ? false :
throw new InvalidOperationException($"GetStateBool: {key} is not a bool");
}


}
}
}
Expand Down

0 comments on commit b207723

Please sign in to comment.