Kaynağa Gözat

Removed some Debug.Log calls

Marcel Zickler 3 yıl önce
ebeveyn
işleme
50eca7052e

+ 2 - 2
Assets/Scripts/Controller/Bicycle/BikeSpeedBooster.cs

@@ -94,7 +94,7 @@ namespace Controller.Bicycle
             var booster = new Booster(Time.time,
                 slopeDegree < 0 ? DURATION_BOOST_STRAIGHT_DOWNHILL : DURATION_BOOST_STRAIGHT_UPHILL,
                 1f / fixedBoost, 1f);
-            Debug.Log($"Adding Booster: {booster}");
+            //Debug.Log($"Adding Booster: {booster}");
             activeBooster.Add(booster);
         }
 
@@ -108,7 +108,7 @@ namespace Controller.Bicycle
             var booster = new Booster(Time.time,
                 slopeDegree < 0 ? DURATION_BOOST_DOWNHILL_STRAIGHT : DURATION_BOOST_UPHILL_STRAIGHT,
                 fixedBoost, 1f);
-            Debug.Log($"Adding Booster: {booster}");
+            //Debug.Log($"Adding Booster: {booster}");
             activeBooster.Add(booster);
         }
 

+ 3 - 3
Assets/Scripts/Display/LookStraightDisplay.cs

@@ -46,17 +46,17 @@ namespace Display
 
         private void FixedUpdate()
         {
-            Debug.Log($"GameObject.Layer = {gameObject.layer}");
+            //Debug.Log($"GameObject.Layer = {gameObject.layer}");
             var layerMask = 1 << gameObject.layer;
             if (Physics.Raycast(camTransform.position, camTransform.forward, out var hit, 2f, layerMask))
             {
                 Debug.DrawRay(camTransform.position, camTransform.forward*hit.distance, Color.green);
-                Debug.Log($"Hit something ({hit.collider.gameObject.layer})");
+                //Debug.Log($"Hit something ({hit.collider.gameObject.layer})");
             }
             else
             {
                 Debug.DrawRay(camTransform.position, camTransform.forward*2f, Color.red);
-                Debug.Log("Hit nothing");
+                //Debug.Log("Hit nothing");
                 ResetCircle();
             }
         }

+ 1 - 1
Assets/Scripts/Routes/Route.cs

@@ -84,7 +84,7 @@ namespace Routes
 
         private void NextTurn()
         {
-            Debug.Log("Route: left intersection - show next turn");
+            //Debug.Log("Route: left intersection - show next turn");
             visibleStart++;
             UpdateRouteItems();
         }

+ 2 - 2
Assets/Scripts/Routes/Turn.cs

@@ -98,10 +98,10 @@ namespace Routes
 
         private bool AddArrows(RoadDirection position, GameObject arrows)
         {
-            Debug.Log($"---{gameObject.name}--- adding arrows at {position}");
+            //Debug.Log($"---{gameObject.name}--- adding arrows at {position}");
             var t = RoadDirectionToTransform(position);
             if (t == null) return false;
-            Debug.Log($"  Transform for position => {t.gameObject.name}");
+            //Debug.Log($"  Transform for position => {t.gameObject.name}");
 
             SetRotation(arrows, position);
             arrows.transform.position = t.position;

+ 1 - 1
Assets/Scripts/SicknessReduction/Visual/DoF/DynamicDoF.cs

@@ -98,7 +98,7 @@ distances that takes ≈ 1.7*/
 
             //var coc = maxFactorRadiusCOC * 1 / Mathf.Pow(focusDistance, pow);
             var coc = Mathf.Clamp(cocRadius.factor * (-Mathf.Log(focusDistance) + 1.9f * Mathf.Exp(1)), cocRadius.min, cocRadius.max);
-            Debug.Log($"COC = {coc}, focusDistance = {focusDistance}");
+            //Debug.Log($"COC = {coc}, focusDistance = {focusDistance}");
             //var coc = maxFactorRadiusCOC * 1 - ()
             doF.aperture.value = ApertureForCocAndFocusDistance(coc, focusDistance);
         }

+ 1 - 1
Assets/Scripts/Wheels/ColliderAddSlopeAdjustment.cs

@@ -36,7 +36,7 @@ public class ColliderAddSlopeAdjustment : MonoBehaviour
         if (hitDistLower != null && hitDistUpper != null)
         {
             var slope = CalculateHitSlope(hitDistLower.Value, hitDistUpper.Value);
-            Debug.Log($"Hit - Slope = {(underground ? -slope : slope )}");
+            //Debug.Log($"Hit - Slope = {(underground ? -slope : slope )}");
             return true;
         }
 

+ 3 - 3
Assets/Scripts/Wheels/SlopeCollider.cs

@@ -78,19 +78,19 @@ namespace Wheels
             {
                 var deltaY = fwDist <= rwDist ? fwDist : rwDist;
                 bike.Translate(0,-deltaY,0);
-                Debug.Log($"Translated {-deltaY} on y");
+                //Debug.Log($"Translated {-deltaY} on y");
             }
             else if (fw.distance >= THRESHOLD)
             {
                 var angle = Mathf.Atan(fw.distance / distRwFw) * Mathf.Rad2Deg;
-                Debug.Log($"Rotating {angle} deg");
+                //Debug.Log($"Rotating {angle} deg");
                 bike.RotateAround(rearWheelContactPoint.position, rearWheelContactPoint.right, angle);
             }
             else if (rw.distance >= THRESHOLD)
             {
                 var angle = Mathf.Atan(rw.distance / distRwFw) * Mathf.Rad2Deg;
                 bike.RotateAround(frontWheelContactPoint.position, frontWheelContactPoint.right, -angle);
-                Debug.Log($"Rotating {-angle} deg");
+                //Debug.Log($"Rotating {-angle} deg");
             }
 
             //if ((fwHit?.even ?? true) && (rwHit?.even ?? true)) return;