예제 #1
0
 private void DisplayPullerInfluenceSouth(int distance, bool shouldHighlight)
 {
     if (!southWall && southNeighbor && distance > 0)
     {
         GridElement south = southNeighbor.GetComponent <GridElement>();
         if (shouldHighlight)
         {
             south.ChangeColor(GridMenu.pullColor);
             if (south.piece && (south.piece.GetComponent <GamePiece>() is Unit || south.piece.GetComponent <GamePiece>() is Trap))
             {
                 south.isHighlighted = shouldHighlight;
             }
             else
             {
                 south.GetComponent <Image>().color += new Color(0.2F, 0.2F, 0.2F);
             }
         }
         else
         {
             south.ChangeColor(Menu.defaultColor);
         }
         south.DisplayPullerInfluenceSouth(distance - 1, shouldHighlight);
     }
 }