Exemple #1
0
 /// <summary>
 /// Callback to draw gizmos only if the object is selected.
 /// </summary>
 void OnDrawGizmosSelected()
 {
     Gizmos.color = Color.yellow;
     Right.DrawRayGizmos();
     Gizmos.color = Color.blue;
     Left.DrawRayGizmos();
     Gizmos.color = Color.green;
     Up.DrawRayGizmos();
     Gizmos.color = Color.red;
     Down.DrawRayGizmos();
     //Vector2 center = transform.TransformPoint(boxCollider2D.offset);
     //Down.GetWorldDirectionValue(center, Vector2.zero);
 }