Example #1
0
        public void should_get_xy_with_world_position()
        {
            GridScript gridScript = new GridScript(10, 4, 4);
            int        x, y;
            var        worldPosition = new Vector3(32, 32);

            gridScript.GetXY(worldPosition, out x, out y);

            Assert.AreEqual(x, 3);
            Assert.AreEqual(y, 3);
        }