Skip to content

Commit

Permalink
Logs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Jan 16, 2024
1 parent a08a724 commit 33103e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion Assets/PlayroomKit/PlayroomKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public static void InsertCoin(Action callback, InitOptions options = null)
InsertCoinCallback = callback;
string optionsJson = null;
if (options != null) { optionsJson = SerializeInitOptions(options); }
Debug.Log("C# " + optionsJson);
InsertCoinInternal(InvokeInsertCoin, optionsJson, __OnPlayerJoinCallbackHandler, __OnQuitInternalHandler);
}
else
Expand Down
7 changes: 0 additions & 7 deletions Assets/Plugins/PlayroomPlugin.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ mergeInto(LibraryManager.library, {
}

var options = optionsJson ? JSON.parse(UTF8ToString(optionsJson)) : {};
// console.log(options)

Promise.all([
embedScript("https://unpkg.com/[email protected]/umd/react.development.js"),
Expand Down Expand Up @@ -714,23 +713,17 @@ mergeInto(LibraryManager.library, {
}

const players = window._multiplayer.getPlayers();
console.log(players)

if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
return null;
}
const playerState = players[UTF8ToString(playerID)];
console.log(playerState)

if (!playerState) {
console.error("Player with ID", UTF8ToString(playerID), "not found.");
return null;
}

const p = playerState.kick()
console.log(p)

playerState.kick().then(() => {
dynCall('v', onKickCallBack, [])
}).catch((error) => {
Expand Down

0 comments on commit 33103e7

Please sign in to comment.