예제 #1
0
 void OnDrawGizmos()
 {
     for (int i = 0; i < transform.childCount; i++)
     {
         GizmosExtension.DrawLine(transform.GetChild(i).position, transform.GetChild((i + 1) % transform.childCount).position, Color.cyan);
     }
 }
예제 #2
0
    void OnDrawGizmos()
    {
//        GizmosExtension.DrawCircle(transform.position, ViewRadius, Color.white, 32);
//        GizmosExtension.DrawLine(transform.position, transform.position + DirectionFromAngle(ViewAngle / 2.0f) * ViewRadius, Color.white);
//        GizmosExtension.DrawLine(transform.position, transform.position + DirectionFromAngle(-ViewAngle / 2.0f) * ViewRadius, Color.white);

        if (_targetFound)
        {
            GizmosExtension.DrawLine(transform.position, _targetFound.position, Color.red);
        }
    }
예제 #3
0
 void OnDrawGizmos()
 {
     GizmosExtension.DrawLine(transform.position, GroundCheckTransform.position, Color.yellow);
 }
예제 #4
0
 void OnDrawGizmos()
 {
     GizmosExtension.DrawLine(ObjectRigidbody2D.position, Waypoints[_waypointIndex].position, Color.grey);
 }