Skip to content

Commit

Permalink
fix: updated ._multiplayer to Multiplayer()
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Jan 4, 2025
1 parent fc04746 commit 2a9d01b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8987662522597341863, guid: 1b30fa3a265114a45a7e23165a20aecc, type: 3}
propertyPath: mockMode
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8987662522597341863, guid: 1b30fa3a265114a45a7e23165a20aecc, type: 3}
propertyPath: enableLogs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GetState = function (key) {
};

SetPlayerStateByPlayerId = function (playerId, key, value, reliable) {
const players = window._multiplayer.getPlayers();
const players = Playroom.Multiplayer().getPlayers();

reliable = !!reliable;

Expand All @@ -50,7 +50,7 @@ SetPlayerStateByPlayerId = function (playerId, key, value, reliable) {
};

GetPlayerStateByPlayerId = function (playerId, key) {
const players = window._multiplayer.getPlayers();
const players = Playroom.Multiplayer().getPlayers();

if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
Expand Down Expand Up @@ -107,7 +107,7 @@ IsStreamScreen = function () {
};

GetProfile = function (playerId) {
const players = window._multiplayer.getPlayers();
const players = Playroom.Multiplayer().getPlayers();

if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
Expand Down Expand Up @@ -172,7 +172,7 @@ WaitForPlayerState = async function (playerId, stateKey, onStateSetCallback) {
return;
}

const players = window._multiplayer.getPlayers();
const players = Playroom.Multiplayer().getPlayers();

if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
Expand Down Expand Up @@ -205,7 +205,7 @@ Kick = async function (playerID) {
return;
}

const players = window._multiplayer.getPlayers();
const players = Playroom.Multiplayer().getPlayers();

if (typeof players !== "object" || players === null) {
console.error('The "players" variable is not an object:', players);
Expand Down
2 changes: 1 addition & 1 deletion Assets/PlayroomKit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"playroomkit": "0.0.84",
"playroomkit": "0.0.85",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down

0 comments on commit 2a9d01b

Please sign in to comment.