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,6 +1,7 @@
using UnityEngine;
using System;
using System.Collections;
using Core;
using Pathfinding;
public class AnneLiseBehaviour : MonoBehaviour
@@ -162,6 +163,6 @@ public class AnneLiseBehaviour : MonoBehaviour
}
annaLiseIsReady = false; // Reset the flag after taking the photo
}
Debug.Log("Trafalgar touched Anna Lise");
Logging.Debug("Trafalgar touched Anna Lise");
}
}

View File

@@ -24,7 +24,7 @@ public class Distancemeasurer : MonoBehaviour
{
playerPosition = player.transform.position;
distance = Vector2.Distance(placePosition, playerPosition);
//Debug.Log("Distance to player: " + distance);
//Logging.Debug("Distance to player: " + distance);
if (distance > playerToPlaceDistance && birdEyes.correctItemIsIn == true)
{
birdEyes.BirdReveal();

View File

@@ -1,4 +1,5 @@
using System.Security.Cryptography.X509Certificates;
using Core;
using Pixelplacement;
using UnityEngine;
@@ -20,7 +21,7 @@ public class GardenerBehaviour : MonoBehaviour
public void stateSwitch (string StateName)
{
Debug.Log("State Switch to: " + StateName);
Logging.Debug("State Switch to: " + StateName);
stateMachineRef.ChangeState(StateName);
}
}

View File

@@ -1,3 +1,4 @@
using Core;
using UnityEngine;
using Pixelplacement;
@@ -18,12 +19,12 @@ public class LawnMowerBehaviour : MonoBehaviour
}
public void mowerTouched()
{
Debug.Log("Mower Touched");
Logging.Debug("Mower Touched");
}
public void stateSwitch(string StateName)
{
Debug.Log("State Switch to: " + StateName);
Logging.Debug("State Switch to: " + StateName);
stateMachineRef.ChangeState(StateName);
}
}

View File

@@ -1,6 +1,7 @@
using UnityEngine;
using Pixelplacement;
using System.Collections;
using Core;
public class PicnicBehaviour : MonoBehaviour
{
@@ -56,7 +57,7 @@ public class PicnicBehaviour : MonoBehaviour
{
animator.SetTrigger("theyAngry");
//stateMachine.ChangeState("Picnic PPL Angry");
Debug.Log("Hey! Don't steal my chocolate!");
Logging.Debug("Hey! Don't steal my chocolate!");
}
public void destroyFakeChocolate()

View File

@@ -1,3 +1,4 @@
using Core;
using Pixelplacement;
using UnityEngine;
@@ -27,7 +28,7 @@ public class SoundGenerator : MonoBehaviour
if (!playerInside && other.CompareTag("Player"))
{
playerInside = true;
Debug.Log("Player entered SoundGenerator trigger!");
Logging.Debug("Player entered SoundGenerator trigger!");
if (spriteRenderer != null && enterSprite != null)
{
spriteRenderer.sprite = enterSprite;
@@ -49,7 +50,7 @@ public class SoundGenerator : MonoBehaviour
if (playerInside && other.CompareTag("Player"))
{
playerInside = false;
Debug.Log("Player exited SoundGenerator trigger!");
Logging.Debug("Player exited SoundGenerator trigger!");
if (spriteRenderer != null && exitSprite != null)
{
spriteRenderer.sprite = exitSprite;

View File

@@ -48,7 +48,7 @@ public class soundBird_LandingBehaviour1 : MonoBehaviour
{
objectTween.Cancel(); // Stop the spline tween for this object
}
//Debug.Log("Tween finished!");
//Logging.Debug("Tween finished!");
if (stateMachine != null)
{
animator.SetBool("isScared", false);

View File

@@ -38,7 +38,7 @@ public class soundBird_TakeOffBehaviour : MonoBehaviour
objectTween.Cancel(); // Stop the spline tween for this object
}
//Debug.Log("Tween finished!");
//Logging.Debug("Tween finished!");
if (stateMachine != null)
{
stateMachine.ChangeState("SoundBirdFlyAround"); // Change to the desired state name