Browse Source

And removed the spammy debug statements that are no longer needed.

master
s3607057 (Angus Niven) 4 years ago
parent
commit
76374fc784
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs

+ 2
- 2
Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs View File

@ -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

Loading…
Cancel
Save