Ejemplo n.º 1
0
        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());
        }