예제 #1
0
    public bool MouseOn(TouchableByMouse touchable, out Vector3 hitPos)
    {
        bool contains = hitByRay.ContainsKey(touchable);

        hitPos = contains ? hitByRay[touchable] : new Vector3();
        return(contains);
    }
예제 #2
0
 public bool MouseOn(TouchableByMouse touchable)
 {
     return(hitByRay.ContainsKey(touchable));
 }
예제 #3
0
 public RayHitInfo(TouchableByMouse touchable, Vector3 hitPos)
 {
     (this.Hit, this.hitPos) = (touchable, hitPos);
 }