예제 #1
0
    private void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.red;
        GizmosUtil.DrawPoint((Vector2)transform.position + eastHand);
        GizmosUtil.DrawPoint((Vector2)transform.position + westHand);
        GizmosUtil.DrawPoint((Vector2)transform.position + northPoint);
        GizmosUtil.DrawPoint((Vector2)transform.position + southPoint);

        Gizmos.DrawWireSphere(transform.position + (Vector3)twoHandedMidPoint, radius);
    }
    private void OnDrawGizmos()
    {
#if UNITY_EDITOR
        for (int i = 0; i < s_points.Count; i++)
        {
            GizmosUtil.DrawPoint(s_points[i]);
            UnityEditor.Handles.Label(s_points[i], string.Format("{0}", i));
            if (i > 0)
            {
                Gizmos.DrawLine(s_points[i - 1], s_points[i]);
            }
        }
#endif
    }
예제 #3
0
 private void OnDrawGizmosSelected()
 {
     Gizmos.color = Color.red;
     GizmosUtil.DrawPoint(transform.position + gunSpawnPoint);
 }