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

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