コード例 #1
0
 private Vector3?GetPositionFromMouseClick()
 {
     if (RaycastHandler.Update())
     {
         if (ExtendLayerMask.NotGroundMask(RaycastHandler.HitInfo.transform.gameObject.layer))
         {
             return(RaycastHandler.HitInfo.point);
         }
     }
     return(null);
 }
コード例 #2
0
 private bool setPositionFromMouseClick()
 {
     //If the ray hits an object
     if (RaycastHandler.Update())
     {
         if (ExtendLayerMask.NotGroundMask(RaycastHandler.HitInfo.transform.gameObject.layer))
         {
             targetPosition = RaycastHandler.HitInfo.point;
             return(true);
         }
     }
     return(false);
 }