Esempio n. 1
0
 void ResourceConsumedHandler(int resourcesConsumed, bool exploded)
 {
     if (text != null)
     {
         text.pitEncounteredTime = Time.time;
     }
     _grid.DestroyNanobotAt(Cell.GridPosition);
 }
Esempio n. 2
0
 void explodeNanobots(GridPosition position)
 {
     for (int x = -radius; x <= radius; x++)
     {
         for (int y = -radius; y <= radius; y++)
         {
             GridPosition offset   = new GridPosition(x, y);
             GridPosition adjacent = _grid.applyDelta(position, offset);
             if (adjacent != null)
             {
                 _grid.DestroyNanobotAt(adjacent);
             }
         }
     }
 }