Exemplo n.º 1
0
 public Tile GetClosestTileToInput()
 {
     return(GetClosestTile(M_Math.GetPlaneIntersectionY(Camera.main.ScreenPointToRay(Input.mousePosition))));
 }
Exemplo n.º 2
0
 float CameraDistanceToPlane()
 {
     return((M_Math.GetPlaneIntersectionY(new Ray(transform.position, transform.forward)) - transform.position).magnitude);
 }