예제 #1
0
 private void OnDrawGizmos()
 {
     Gizmos.color = Color.yellow;
     if (grid == null)
     {
         return;
     }
     for (int x = 0; x < grid.GetWidth(); x++)
     {
         for (int y = 0; y < grid.GetHeight(); y++)
         {
             Vector2 pos = grid.GetWorldPos(x, y);
             Gizmos.DrawSphere(pos, 0.05f);
         }
     }
 }