Strip debug logging from the game, fix screen weirdness

This commit is contained in:
Michal Pikulski
2025-10-14 15:53:58 +02:00
parent 18be597424
commit e8180b21bf
65 changed files with 768 additions and 411 deletions

View File

@@ -1,5 +1,6 @@
using UnityEngine;
using AppleHills.Core;
using Core;
namespace AppleHills.Examples
{
@@ -17,64 +18,64 @@ namespace AppleHills.Examples
// Print info about the player
if (player != null)
{
Debug.Log($"[QuickAccessExample] Player found: {player.name}");
Debug.Log($"[QuickAccessExample] Player position: {player.transform.position}");
Logging.Debug($"[QuickAccessExample] Player found: {player.name}");
Logging.Debug($"[QuickAccessExample] Player position: {player.transform.position}");
// Access player controller
var playerController = QuickAccess.Instance.PlayerController;
if (playerController != null)
{
Debug.Log($"[QuickAccessExample] Player controller found on object");
Logging.Debug($"[QuickAccessExample] Player controller found on object");
}
else
{
Debug.LogWarning($"[QuickAccessExample] Player controller not found");
Logging.Warning($"[QuickAccessExample] Player controller not found");
}
}
else
{
Debug.LogWarning($"[QuickAccessExample] Player not found in scene");
Logging.Warning($"[QuickAccessExample] Player not found in scene");
}
// Print info about the follower (Pulver)
if (follower != null)
{
Debug.Log($"[QuickAccessExample] Follower found: {follower.name}");
Debug.Log($"[QuickAccessExample] Follower position: {follower.transform.position}");
Logging.Debug($"[QuickAccessExample] Follower found: {follower.name}");
Logging.Debug($"[QuickAccessExample] Follower position: {follower.transform.position}");
// Access follower controller
var followerController = QuickAccess.Instance.FollowerController;
if (followerController != null)
{
Debug.Log($"[QuickAccessExample] Follower controller found on object");
Logging.Debug($"[QuickAccessExample] Follower controller found on object");
}
else
{
Debug.LogWarning($"[QuickAccessExample] Follower controller not found");
Logging.Warning($"[QuickAccessExample] Follower controller not found");
}
}
else
{
Debug.LogWarning($"[QuickAccessExample] Follower not found in scene");
Logging.Warning($"[QuickAccessExample] Follower not found in scene");
}
// Access camera
var camera = QuickAccess.Instance.MainCamera;
if (camera != null)
{
Debug.Log($"[QuickAccessExample] Main camera found: {camera.name}");
Debug.Log($"[QuickAccessExample] Camera position: {camera.transform.position}");
Logging.Debug($"[QuickAccessExample] Main camera found: {camera.name}");
Logging.Debug($"[QuickAccessExample] Camera position: {camera.transform.position}");
}
else
{
Debug.LogWarning($"[QuickAccessExample] Main camera not found");
Logging.Warning($"[QuickAccessExample] Main camera not found");
}
// Access managers
try
{
Debug.Log($"[QuickAccessExample] Game Manager instance accessed: {QuickAccess.Instance.GameManager != null}");
Debug.Log($"[QuickAccessExample] Input Manager instance accessed: {QuickAccess.Instance.InputManager != null}");
Logging.Debug($"[QuickAccessExample] Game Manager instance accessed: {QuickAccess.Instance.GameManager != null}");
Logging.Debug($"[QuickAccessExample] Input Manager instance accessed: {QuickAccess.Instance.InputManager != null}");
}
catch (System.Exception e)
{