コード例 #1
0
ファイル: AnchorGroup.cs プロジェクト: tuita520/handUI
 public bool Contains(Anchor anchor)
 {
     return(_anchors.Contains(anchor));
 }
コード例 #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);
 }