We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe4579c + 4b4fe24 commit 0a73652Copy full SHA for 0a73652
1 file changed
Assets/PlayroomKit/modules/Player/PlayerService.cs
@@ -1,10 +1,8 @@
1
+using AOT;
2
using System;
3
using System.Collections.Generic;
4
using System.Globalization;
-using System.Runtime.CompilerServices;
5
using UnityEngine;
6
-using System.Runtime.InteropServices;
7
-using AOT;
8
9
namespace Playroom
10
{
@@ -218,9 +216,10 @@ private static void InvokeKickCallBack()
218
216
IPlayerBase.onKickCallBack?.Invoke();
219
217
}
220
221
- [MonoPInvokeCallback(typeof(Action))]
+ [MonoPInvokeCallback(typeof(Action<string>))]
222
public void OnQuitWrapperCallback(string id)
223
+ Players.Remove(id);
224
if (OnQuitCallbacks != null)
225
foreach (var callback in OnQuitCallbacks)
226
callback?.Invoke(id);
0 commit comments