void OnDrawGizmos() { Gizmos.color = new Color(0, 1, 1, .5f); foreach (var circle in arenaCircles) { GizmoExtensions.DrawCircle(CirclePos(circle), circle.radius); } }
void OnDrawGizmosSelected() { Gizmos.color = Color.cyan; foreach (var circle in arenaCircles) { GizmoExtensions.DrawCircle(CirclePos(circle), circle.radius, true); } }
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); }
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); }
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); }
void OnDrawGizmosSelected() { Gizmos.color = Color.red; GizmoExtensions.DrawCircle(transform.position, attackRange, 20); }
void OnDrawGizmos() { Gizmos.color = new Color(1, 1, .3f, .3f); GizmoExtensions.DrawCircle(transform.position, maxAqcuireRange); }
void OnDrawGizmosSelected() { Gizmos.color = Color.green; GizmoExtensions.DrawCircle(transform.position, minWanderDistance, 20); }