From 76374fc78469d737224ea4e48f4eb586957f86dd Mon Sep 17 00:00:00 2001 From: "s3607057 (Angus Niven)" Date: Thu, 26 Sep 2019 15:15:00 +1000 Subject: [PATCH] And removed the spammy debug statements that are no longer needed. --- Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs b/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs index 8e2208d..91f43d7 100644 --- a/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs +++ b/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs @@ -72,7 +72,7 @@ public class RacetrackGameMode : GameMode Vector3 xAvgPos = new Vector3(xAvg, 0.0f, 0.0f); Vector3 xAvgVP = Camera.main.WorldToViewportPoint(xAvgPos); - Debug.Log("xAvgPos = " + xAvgPos + ", xAvgVP = " + xAvgVP); + //Debug.Log("xAvgPos = " + xAvgPos + ", xAvgVP = " + xAvgVP); //We move the camera forward by at least one increment //Keep doing it until the average x-position is roughly centred @@ -81,7 +81,7 @@ public class RacetrackGameMode : GameMode Camera.main.transform.Translate(scrollSpeed, 0, 0, Space.World); xAvgVP = Camera.main.WorldToViewportPoint(xAvgPos); - Debug.Log("Camera = " + Camera.main.transform.position + ", xAvgVP = " + xAvgVP); + //Debug.Log("Camera = " + Camera.main.transform.position + ", xAvgVP = " + xAvgVP); } while (xAvgVP.x > 0.5f || xAvgVP.y > 0.5f); //If the foremost player is off the screen, scroll forward to catch up with them