Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aarijimam committed Nov 22, 2024
1 parent bad0dc4 commit 02d6632
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Assets/PlayroomKit/modules/Helpers/DebugLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

public static class DebugLogger
{
#if UNITY_EDITOR || DEBUG
public static bool enableLogs = true; // Toggle to enable/disable logs
#if UNITY_EDITOR || DEBUG


public static void Log(string message)
{
Expand Down
5 changes: 4 additions & 1 deletion Assets/PlayroomKit/modules/Player/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@ public void InvokePlayerOnQuitCallback()
if (_playerService is PlayerService playerService)
{
playerService.InvokePlayerOnQuitCallback(id);
}else if (_playerService is BrowserMockPlayerService playerService2)
}
#if UNITY_EDITOR || DEBUG
else if (_playerService is BrowserMockPlayerService playerService2)
{
playerService2.InvokePlayerOnQuitCallback(id);
}
#endif
else
{
Debug.LogWarning("InvokePlayerOnQuitCallback is only supported on build");
Expand Down
5 changes: 0 additions & 5 deletions Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UBB;
using UnityEngine;

public class Player : MonoBehaviour
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ EditorBuildSettings:
- enabled: 0
path: Assets/PlayroomKit/Examples/2d-platformer/2d-platformer.unity
guid: cf82eec4c654cf44b89cec2a91afebd5
- enabled: 0
- enabled: 1
path: Assets/PlayroomKit/Examples/discord-activity/discord-activity.unity
guid: bb7ef8e4a67f3fb46b78e5d95a6858a7
- enabled: 1
- enabled: 0
path: Assets/PlayroomKit/Examples/package-showcase/showcase.unity
guid: 85c9af77ae006408ab24500b953a9035
m_configObjects: {}

0 comments on commit 02d6632

Please sign in to comment.