Skip to content

Commit 0a73652

Browse files
authored
Merge pull request #157 from tulayha/fixes
fix: onQuit not updating internal player list
2 parents fe4579c + 4b4fe24 commit 0a73652

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Assets/PlayroomKit/modules/Player/PlayerService.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
using AOT;
12
using System;
23
using System.Collections.Generic;
34
using System.Globalization;
4-
using System.Runtime.CompilerServices;
55
using UnityEngine;
6-
using System.Runtime.InteropServices;
7-
using AOT;
86

97
namespace Playroom
108
{
@@ -218,9 +216,10 @@ private static void InvokeKickCallBack()
218216
IPlayerBase.onKickCallBack?.Invoke();
219217
}
220218

221-
[MonoPInvokeCallback(typeof(Action))]
219+
[MonoPInvokeCallback(typeof(Action<string>))]
222220
public void OnQuitWrapperCallback(string id)
223221
{
222+
Players.Remove(id);
224223
if (OnQuitCallbacks != null)
225224
foreach (var callback in OnQuitCallbacks)
226225
callback?.Invoke(id);

0 commit comments

Comments
 (0)