示例#1
0
 void OnDrawGizmos()
 {
     Gizmos.color = new Color(0, 1, 1, .5f);
     foreach (var circle in arenaCircles)
     {
         GizmoExtensions.DrawCircle(CirclePos(circle), circle.radius);
     }
 }
示例#2
0
    void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.cyan;

        foreach (var circle in arenaCircles)
        {
            GizmoExtensions.DrawCircle(CirclePos(circle), circle.radius, true);
        }
    }
示例#3
0
    void OnDrawGizmosSelected()
    {
        const float shadowScaleConstant = 2;

        Gizmos.color = new Color(0, 0, 0, .1f);
        Gizmos.DrawSphere(transform.position, shadowScale * shadowScaleConstant);
        Gizmos.color = Color.black;
        GizmoExtensions.DrawCircle(transform.position, shadowScale * shadowScaleConstant);
    }
示例#4
0
    void OnDrawGizmos()
    {
        Gizmos.color = new Color(1, 1, 0, .2f);
        GizmoExtensions.DrawCircle(transform.position, notifyDistance);

        Gizmos.color = new Color(1, 1, 0, .8f);
        GizmoExtensions.DrawCircle(transform.position, actionDistance);

        Gizmos.DrawSphere(transform.position + guiPosition, .1f);
    }
示例#5
0
    void OnDrawGizmos()
    {
        Gizmos.color = Color.blue;
        GizmoExtensions.DrawCircle(transform.position, attackRadius, 30);

        Gizmos.color = Color.cyan;
        Vector3 anglePoint1 = transform.rotation * new Vector3(attackRadius * Mathf.Sin(attackAngle / 2 * Mathf.Deg2Rad), 0f, attackRadius * Mathf.Cos(attackAngle / 2 * Mathf.Deg2Rad));
        Vector3 anglePoint2 = transform.rotation * new Vector3(attackRadius * Mathf.Sin(-attackAngle / 2 * Mathf.Deg2Rad), 0f, attackRadius * Mathf.Cos(-attackAngle / 2 * Mathf.Deg2Rad));

        Gizmos.DrawLine(transform.position, anglePoint1 + transform.position);
        Gizmos.DrawLine(transform.position, anglePoint2 + transform.position);
    }
 void OnDrawGizmosSelected()
 {
     Gizmos.color = Color.red;
     GizmoExtensions.DrawCircle(transform.position, summonMaxRadius, 20);
     GizmoExtensions.DrawCircle(transform.position, summonMinRadius, 20);
 }
示例#7
0
 void OnDrawGizmosSelected()
 {
     Gizmos.color = Color.red;
     GizmoExtensions.DrawCircle(transform.position, attackRange, 20);
 }
示例#8
0
 void OnDrawGizmos()
 {
     Gizmos.color = new Color(1, 1, .3f, .3f);
     GizmoExtensions.DrawCircle(transform.position, maxAqcuireRange);
 }
示例#9
0
    void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.green;

        GizmoExtensions.DrawCircle(transform.position, minWanderDistance, 20);
    }