コード例 #1
0
        protected InteractiveHandle GetHandle(IPickingTarget pickingTarget)
        {
            MonoBehaviour behaviour = pickingTarget as MonoBehaviour;

            if (behaviour == null)
            {
                return(null);
            }

            return(behaviour.GetComponentInParent <InteractiveHandle>());
        }
コード例 #2
0
 public PickingHit(IPickingTarget target, float distance) : this()
 {
     this.target   = target;
     this.distance = distance;
 }