예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 private void OnDrawGizmos()
 {
     GizmosHelpers.FatArrow(transform.position, transform.right * 16);
 }