예제 #1
0
        public void CellClearanceIsCorrectlySet()
        {
            const int clearance = 20;
            const int X         = 0;
            const int Y         = 1;
            var       grid      = new PathfindingGrid(20, 20, Allocator.Persistent);

            grid.SetClearance(X, Y, clearance);
            Assert.AreEqual(clearance, grid.GetClearance(X, Y));
            grid.Dispose();
        }