Exemplo n.º 1
0
 public bool Contains(Anchor anchor)
 {
     return(_anchors.Contains(anchor));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns whether the specified anchor is within attachment range of this Anchorable object.
 /// </summary>
 public bool IsWithinRange(Anchor anchor)
 {
     return((this.transform.position - anchor.transform.position).sqrMagnitude < maxAnchorRange * maxAnchorRange);
 }