Skip to content

Commit d61841c

Browse files
committed
Removed missile collision fix as not needed, adjusted missile collider
1 parent 41f60f6 commit d61841c

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

Assets/EC2018/BuildingController.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,8 @@ public void Setup (Building building) {
8686
SetConstructionParameters (startScale);
8787
}
8888

89-
if(building.BuildingType == BuildingType.Tesla || building.BuildingType == BuildingType.Defense) {
90-
if(timeLeft < 0) {
91-
isUnderConstruction = false;
92-
}
93-
} else {
94-
if(timeLeft <= 0) {
95-
isUnderConstruction = false;
96-
}
89+
if(timeLeft <= 0) {
90+
isUnderConstruction = false;
9791
}
9892

9993
if(building.BuildingType == BuildingType.Tesla) {

Assets/Prefabs/Missile A.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ BoxCollider:
910910
m_IsTrigger: 0
911911
m_Enabled: 1
912912
serializedVersion: 2
913-
m_Size: {x: 5, y: 1, z: 1}
914-
m_Center: {x: 2, y: 0, z: 0}
913+
m_Size: {x: 5, y: 0.52, z: 1}
914+
m_Center: {x: 1.49, y: 0, z: 0}
915915
--- !u!65 &65644856425442298
916916
BoxCollider:
917917
m_ObjectHideFlags: 1

Assets/Prefabs/Missile B.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ BoxCollider:
910910
m_IsTrigger: 0
911911
m_Enabled: 1
912912
serializedVersion: 2
913-
m_Size: {x: 5, y: 1, z: 1}
914-
m_Center: {x: 2, y: 0, z: 0}
913+
m_Size: {x: 5, y: 0.5, z: 1}
914+
m_Center: {x: 1.49, y: 0, z: 0}
915915
--- !u!65 &65671987771151308
916916
BoxCollider:
917917
m_ObjectHideFlags: 1

0 commit comments

Comments
 (0)