protected void OnDrawGizmosSelected() { if (listeners == null) { return; } foreach (var listener in listeners) { if (!listener) { return; } GizmosHelpers.Arrow(transform.position, listener.transform.position - transform.position, 4); Collider2D collider = listener.GetComponentInChildren <Collider2D>(); if (collider) { GizmosHelpers.Collider(collider); } } }
private void OnDrawGizmos() { GizmosHelpers.FatArrow(transform.position, transform.right * 16); }