diff --git a/Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity b/Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity
index 34f52d2..160525e 100644
--- a/Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity
+++ b/Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity
@@ -313,7 +313,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8987662522597341863, guid: 1b30fa3a265114a45a7e23165a20aecc, type: 3}
propertyPath: mockMode
- value: 1
+ value: 0
objectReference: {fileID: 0}
- target: {fileID: 8987662522597341863, guid: 1b30fa3a265114a45a7e23165a20aecc, type: 3}
propertyPath: insertCoinCaller
diff --git a/Assets/PlayroomKit/Examples/2d-platformer/scripts/GameManager2d.cs b/Assets/PlayroomKit/Examples/2d-platformer/scripts/GameManager2d.cs
index 0598053..a765c57 100644
--- a/Assets/PlayroomKit/Examples/2d-platformer/scripts/GameManager2d.cs
+++ b/Assets/PlayroomKit/Examples/2d-platformer/scripts/GameManager2d.cs
@@ -177,7 +177,6 @@ public void AddPlayer(PlayroomKit.Player player)
///
/// Remove player from the game, called when the player leaves / closes the game.
///
- [MonoPInvokeCallback(typeof(Action))]
private static void RemovePlayer(string playerID)
{
if (PlayerDict.TryGetValue(playerID, out GameObject player))
diff --git a/Assets/PlayroomKit/Examples/discord-activity/scripts/GameManagerIsometric.cs b/Assets/PlayroomKit/Examples/discord-activity/scripts/GameManagerIsometric.cs
index 2937a0a..5730087 100644
--- a/Assets/PlayroomKit/Examples/discord-activity/scripts/GameManagerIsometric.cs
+++ b/Assets/PlayroomKit/Examples/discord-activity/scripts/GameManagerIsometric.cs
@@ -38,11 +38,11 @@ private void Start()
_playroomKit.OnPlayerJoin(AddPlayer);
_playroomKit.RpcRegister("one", ((data, player) => { Debug.LogWarning("One Event Called"); }));
-
+
_playroomKit.RpcRegister("two", ((data, player) => { Debug.LogWarning("two Event Called"); }));
-
- _playroomKit.RpcRegister("one", ((data, player) => { Debug.LogWarning("One Event Called With a diff callback"); }));
-
+
+ _playroomKit.RpcRegister("one",
+ ((data, player) => { Debug.LogWarning("One Event Called With a diff callback"); }));
}, () => { Debug.Log("OnDisconnect callback"); });
}
@@ -102,7 +102,7 @@ private void AddPlayer(PlayroomKit.Player player)
playerJoined = true;
player.OnQuit(RemovePlayer);
}
-
+
private static void RemovePlayer(string playerID)
{
if (PlayerDict.TryGetValue(playerID, out var player))
@@ -110,6 +110,10 @@ private static void RemovePlayer(string playerID)
PlayerDict.Remove(playerID);
playerGameObjects.Remove(player);
Destroy(player);
+
+ foreach (var (key, value) in PlayerDict) Debug.Log($"player {key} is still in the room");
+
+ Debug.Log(playerID + " has left the room!");
}
else
{
diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset
index 8e9f6cf..d521744 100644
--- a/ProjectSettings/EditorBuildSettings.asset
+++ b/ProjectSettings/EditorBuildSettings.asset
@@ -5,18 +5,12 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- - enabled: 0
- path: Assets/Scenes/Lobby.unity
- guid: 27215d4ccddeb6d49af03911dd97f9b1
- enabled: 0
path: Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity
guid: cf82eec4c654cf44b89cec2a91afebd5
- enabled: 1
path: Assets/PlayroomKit/Examples/discord-activity/discord-activity.unity
guid: bb7ef8e4a67f3fb46b78e5d95a6858a7
- - enabled: 0
- path: Assets/Scenes/topdown.unity
- guid: 490247da3cf48784ab657a183ba059d1
- enabled: 0
path: Assets/PlayroomKit/Examples/package-showcase/showcase.unity
guid: 85c9af77ae006408ab24500b953a9035