Exemple #1
0
        public void CellFlagIsCorrectlySet()
        {
            const int flag = 20;
            const int X    = 19;
            const int Y    = 19;
            var       grid = new PathfindingGrid(20, 20, Allocator.Persistent);

            grid.SetFlag(X, Y, flag);
            Assert.AreEqual(flag, grid.GetFlag(X, Y));
            grid.Dispose();
        }