private void OnDrawGizmos()
 {
     if (Application.isPlaying && circuitFound)
     {
         Gizmos.color = Color.green;
         Gizmos.DrawLine(transform.position, target.position);
         Gizmos.DrawWireSphere(circuit.GetRoutePosition(progressDistance), 1);
         Gizmos.color = Color.yellow;
         Gizmos.DrawLine(target.position, target.position + target.forward);
     }
 }
예제 #2
0
 private void OnDrawGizmos()
 {
     if (Application.isPlaying)
     {
         Gizmos.color = Color.green;
         Gizmos.DrawLine(transform.position, target.position);
         Gizmos.DrawWireSphere(circuit.GetRoutePosition(progressDistance), 1);
         Gizmos.color = Color.yellow;
         Gizmos.DrawLine(target.position, target.position + target.forward);
         Gizmos.color = Color.blue;
         //(transfomr)
         //Debug.Log("L: " + Vector3.Distance(L.position, target.position));
         //Debug.Log("R: " + Vector3.Distance(R.position, target.position));
     }
 }