public static bool Raycast(float fDistance, int Mask) { if (null == Camera.main) { return(NkRaycast.SetHitFaile()); } Ray ray = Camera.main.ScreenPointToRay(NkInputManager.mousePosition); return(NkRaycast.UpdateRayCast(ray, fDistance, Mask)); }
public static bool Raycast(Ray ray, float fDistance, int Mask) { return(NkRaycast.UpdateRayCast(ray, fDistance, Mask)); }