private void OnDrawGizmosSelected() { if (characters != null) { Character c; Vector3[] path; int pathlength; Vector3 position = transform.position; for (var i = 0; i < characters.Length; i++) { c = characters[i]; path = c.path; pathlength = path.Length; Gizmos.color = gizmoColors[i]; if (pathlength > 0) { GizmoExtender.DrawWireCircle(position + path[0], 0.25f); GizmoExtender.DrawWireCircle(position + path[pathlength - 1], 0.25f); for (var j = 0; j < pathlength - 1; j++) { Gizmos.DrawLine(position + path[j], position + path[j + 1]); } } } } }
public override void OnDrawGizmosSelected() { Gizmos.color = Color.green; var bot = offsetBottom; var top = offsetTop; var radius = scaledRadius; var xRad = new Vector3(radius, 0, 0); var zRad = new Vector3(0, 0, radius); GizmoExtender.DrawWireCircle(bot, radius); GizmoExtender.DrawWireCircle(top, radius); Gizmos.DrawLine(bot + xRad, top + xRad); Gizmos.DrawLine(bot - xRad, top - xRad); Gizmos.DrawLine(bot + zRad, top + zRad); Gizmos.DrawLine(bot - zRad, top - zRad); }
private void OnDrawGizmosSelected() { Gizmos.color = Color.green; GizmoExtender.DrawWireCircle(itemspawn.position, radius); }
private void OnDrawGizmos() { Gizmos.color = Color.red; GizmoExtender.DrawWireCircle(transform.position, range); }