Exemple #1
0
 public void BuildWallButton()
 {
     ResetButtons();
     if (placeState == PlaceStateType.Wall)
     {
         placeState = PlaceStateType.None;
     }
     else
     {
         placeState           = PlaceStateType.Wall;
         PlaceWallText.text   = "Stop Placing Walls";
         PlaceWallImage.color = Color.green;
     }
 }
Exemple #2
0
 public void DemolishButtonF()
 {
     ResetButtons();
     if (placeState == PlaceStateType.Demolish)
     {
         placeState = PlaceStateType.None;
     }
     else
     {
         placeState          = PlaceStateType.Demolish;
         DemolishText.text   = "Stop Demolishing";
         DemolishImage.color = Color.red;
     }
 }
Exemple #3
0
 public void BuildTowerButton()
 {
     ResetButtons();
     if (placeState == PlaceStateType.Tower)
     {
         placeState = PlaceStateType.None;
     }
     else
     {
         placeState            = PlaceStateType.Tower;
         PlaceTowerText.text   = "Stop Placing Towers";
         PlaceTowerImage.color = Color.green;
     }
 }