public Point screenToIso(Vector2 p) { var cp = mainCamera.transform.DerivedPosition; var adjusted = cp + p; var worldIso = IsoHelper.FromDiamondIso(adjusted); var iso = worldIso / blockSizeOver2; return(iso.ToPoint()); }
public Point screenToIso(Vector2 p) { var cp = mainCamera.transform.DerivedPosition; var adjusted = cp + p; var worldIso = IsoHelper.FromDiamondIso(adjusted); var iso = worldIso / blockSizeOver2; return(iso.ToPoint()); }