We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7b94c commit 41f60f6Copy full SHA for 41f60f6
1 file changed
Assets/EC2018/BuildingController.cs
@@ -86,9 +86,15 @@ public void Setup (Building building) {
86
SetConstructionParameters (startScale);
87
}
88
89
- if(timeLeft <= 0) {
90
- isUnderConstruction = false;
91
- }
+ if(building.BuildingType == BuildingType.Tesla || building.BuildingType == BuildingType.Defense) {
+ if(timeLeft < 0) {
+ isUnderConstruction = false;
92
+ }
93
+ } else {
94
+ if(timeLeft <= 0) {
95
96
97
98
99
if(building.BuildingType == BuildingType.Tesla) {
100
if(timeLeft == 9) {
0 commit comments