예제 #1
0
 // Устанавливает текст для дебага
 private void SetDebugTextForNode(int x, int y)
 {
     if (DebugMode)
     {
         debugTextArrayF.Add(DebugTools.CreateText("F " + GetNode(x, y).F, 0.1f, grid.GetCellPosition(x, y) + Vector3.one * (grid.CellSize / 2), Color.white, TextAnchor.MiddleCenter));
         debugTextArrayH.Add(DebugTools.CreateText("H " + GetNode(x, y).H, 0.1f, grid.GetCellPosition(x, y) + Vector3.one * ((grid.CellSize / 2) + 0.2f), Color.white, TextAnchor.LowerRight));
         debugTextArrayG.Add(DebugTools.CreateText("G " + GetNode(x, y).G, 0.1f, grid.GetCellPosition(x, y) + Vector3.one * ((grid.CellSize / 2) + 0.2f), Color.white, TextAnchor.LowerLeft));
     }
 }