Ejemplo n.º 1
0
        private void SetupPathfinding()
        {
            GlobalLevelController.SetupCells();
            var grid = (SimpleThreadSafeGrid)World.Get <PathfindingSystem>().Grid;

            GlobalLevelController.SetupPathfinding();
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 private void Awake()
 {
     _glc = FindObjectOfType <GlobalLevelController>();
 }