From b2077232fcbf7cd5358d8e8020b9c66344312d21 Mon Sep 17 00:00:00 2001 From: momintlh <77355191+momintlh@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:23:51 +0500 Subject: [PATCH] chore: removed duplicate, unused function --- Assets/PlayroomKit/modules/Player/PlayerService.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Assets/PlayroomKit/modules/Player/PlayerService.cs b/Assets/PlayroomKit/modules/Player/PlayerService.cs index 1dddc4b..70cfb5e 100644 --- a/Assets/PlayroomKit/modules/Player/PlayerService.cs +++ b/Assets/PlayroomKit/modules/Player/PlayerService.cs @@ -154,11 +154,12 @@ public void Kick(Action onKickCallBack = null) private static Action onSetState; + public void WaitForState(string stateKey, Action onStateSetCallback = null) { onSetState = onStateSetCallback; } - + [MonoPInvokeCallback(typeof(Action))] private static void InvokeKickCallBack(string data) { @@ -179,11 +180,6 @@ 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); @@ -191,8 +187,6 @@ private bool GetPlayerStateBoolById(string key) stateValue == 0 ? false : throw new InvalidOperationException($"GetStateBool: {key} is not a bool"); } - - } } }