mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-25 17:40:59 +00:00
remove Debug.Log messages
This commit is contained in:
parent
c4812ce7a2
commit
96d0138f3a
@ -34,17 +34,12 @@ public class AutoTarget : MonoBehaviour {
|
|||||||
|
|
||||||
float dot = Vector3.Dot(targetDirection, lookingAngle);
|
float dot = Vector3.Dot(targetDirection, lookingAngle);
|
||||||
float angle = Mathf.Acos(dot) * Mathf.Rad2Deg;
|
float angle = Mathf.Acos(dot) * Mathf.Rad2Deg;
|
||||||
|
|
||||||
if (angle < minAngle) {
|
if (angle < minAngle) {
|
||||||
minAngle = angle;
|
minAngle = angle;
|
||||||
closest = t;
|
closest = t;
|
||||||
}
|
}
|
||||||
Debug.Log("angle: " + angle);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug.Log("min angle:" + minAngle);
|
|
||||||
|
|
||||||
return closest;
|
return closest;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user