Пример #1
0
        private void SetupPathfinding()
        {
            GlobalLevelController.SetupCells();
            var grid = (SimpleThreadSafeGrid)World.Get <PathfindingSystem>().Grid;

            GlobalLevelController.SetupPathfinding();
        }
Пример #2
0
        public void CheckMemory()
        {
            GlobalLevelController.SetupCells();
            long startBytes = System.GC.GetTotalMemory(true);

            GlobalLevelController.SetupPathfinding();
            long stopBytes = System.GC.GetTotalMemory(true);

            Debug.LogFormat("Memory size is {0} on a {1} sized grid", ((long)(stopBytes - startBytes)), World.Get <PathfindingSystem>().Grid.CellsCount);
        }