lights
This commit is contained in:
1 parent
c2a99d7432
commit
6076b255d6
60 files changed
+8119
-113
No files matched your search
@@ -13,13 +13,6 @@ public class StartFinishLine : MonoBehaviour {
|
||||
double lapStart;
|
||||
|
||||
void Awake() {
|
||||
Debug.LogError("SpaceRace!");
|
||||
Debug.LogError("WSAD - Strafe");
|
||||
Debug.LogError("Mouse 1 - Thrust");
|
||||
Debug.LogError("Mouse 2 - Decelerate");
|
||||
Debug.LogError("Space - Respawn");
|
||||
Debug.LogError("F10 - Exit");
|
||||
|
||||
ship = GetComponent<ShipControls>();
|
||||
lapTimes = new List<double>();
|
||||
sectorTimes = new List<double>();
|
||||
@@ -33,16 +26,16 @@ public class StartFinishLine : MonoBehaviour {
|
||||
return;
|
||||
|
||||
// we are completing a lap
|
||||
Debug.LogError("Lap Complete " + other.gameObject.name);
|
||||
Debug.Log("Lap Complete");
|
||||
double lapTime = Time.timeAsDouble - lapStart;
|
||||
lapTimes.Add(lapTime);
|
||||
|
||||
TimeSpan lapSpan = TimeSpan.FromSeconds(lapTime);
|
||||
Debug.LogError("Time " + lapSpan.ToString("c"));
|
||||
Debug.Log("Time " + lapSpan.ToString("c"));
|
||||
}
|
||||
|
||||
void OnTriggerExit(Collider other) {
|
||||
Debug.LogError("Starting Lap " + other.gameObject.name);
|
||||
Debug.Log("Starting Lap");
|
||||
lapStart = Time.timeAsDouble;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user