@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sky12
m_Shader: {fileID: 104, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _FrontTex
second:
m_Texture: {fileID: 2800000, guid: 67fe4f6de2a7f2e4dbd62ff499f9000e, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BackTex
second:
m_Texture: {fileID: 2800000, guid: 12b8671c1064ed94399359f640c08046, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _LeftTex
second:
m_Texture: {fileID: 2800000, guid: 395a7ee4e7ecf314b93f33e22509c0e3, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _RightTex
second:
m_Texture: {fileID: 2800000, guid: 57fd7422cb845ac4387b447fa432c38a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _UpTex
second:
m_Texture: {fileID: 2800000, guid: b467cde969d43bf4cb18996b649d7a47, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DownTex
second:
m_Texture: {fileID: 2800000, guid: 223b8b2a58527014fb42da76e6e30b21, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _Tint
second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sky13
m_Shader: {fileID: 104, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _FrontTex
second:
m_Texture: {fileID: 2800000, guid: 9085252f967f6b24991a5ece2c6e8c18, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BackTex
second:
m_Texture: {fileID: 2800000, guid: ea51c7762a616e24f9d9a3b2746a6cc5, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _LeftTex
second:
m_Texture: {fileID: 2800000, guid: ef7cd91a5c47fe145a46ed45ce1c84c1, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _RightTex
second:
m_Texture: {fileID: 2800000, guid: ebdb28d14549ae44d81d58390831f3ad, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _UpTex
second:
m_Texture: {fileID: 2800000, guid: 678022e3259d83741ba88c5ecbae6d69, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DownTex
second:
m_Texture: {fileID: 2800000, guid: 5cc8f104fbbe3f14d979ebbfaadd5974, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _Tint
second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sky14
m_Shader: {fileID: 104, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _FrontTex
second:
m_Texture: {fileID: 2800000, guid: 93bffa7cd22778b4ea21df9c78eb866b, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BackTex
second:
m_Texture: {fileID: 2800000, guid: 4dcdffe218b75434bb477ccb4a5b80c1, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _LeftTex
second:
m_Texture: {fileID: 2800000, guid: e132d1758bfc1ca49bb32517a58c5873, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _RightTex
second:
m_Texture: {fileID: 2800000, guid: 301c1e2bcec62a340873bf7d9d9e4f28, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _UpTex
second:
m_Texture: {fileID: 2800000, guid: 2db5abb525593ba469bca5188fbcc73a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DownTex
second:
m_Texture: {fileID: 2800000, guid: d998c5cd83d4cae41abaed0b3719d0f7, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _Tint
second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sky15
m_Shader: {fileID: 104, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 5
m_CustomRenderQueue: -1
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _FrontTex
second:
m_Texture: {fileID: 2800000, guid: e2df29c7512673948828c1de5d345b69, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BackTex
second:
m_Texture: {fileID: 2800000, guid: 234512711fd2ea7468f9220708de708c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _LeftTex
second:
m_Texture: {fileID: 2800000, guid: 52ff10d96db650c4eba64d1da9b5b6bd, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _RightTex
second:
m_Texture: {fileID: 2800000, guid: 03510742b99ef514d8f46aeccd5b6b02, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _UpTex
second:
m_Texture: {fileID: 2800000, guid: d82c3ea068ac83d409d3c9422624bf09, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DownTex
second:
m_Texture: {fileID: 2800000, guid: 1d3acdbba92446748bdc1ef1da566819, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _Tint
second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2322286}
- 136: {fileID: 13618792}
- 65: {fileID: 6587822}
m_Layer: 0
- 114: {fileID: 11438152}
m_Layer: 10
m_Name: tree_a
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5525885, y: 1.863579, z: 0.5376426}
m_Center: {x: 0.02074954, y: 0.6477817, z: -0.02027005}
--- !u!114 &11438152
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 129214}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13618792
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -100,6 +113,14 @@ Prefab:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: fireStump
value:
objectReference: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 129214}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2342846}
- 65: {fileID: 6587974}
- 136: {fileID: 13609340}
m_Layer: 0
- 114: {fileID: 11477764}
m_Layer: 10
m_Name: tree_b
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5256241, y: 1.863579, z: 0.5848304}
m_Center: {x: 0.014008403, y: 0.6477817, z: 0.003323853}
--- !u!114 &11477764
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 147522}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13609340
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 147522}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2316742}
- 65: {fileID: 6532976}
- 136: {fileID: 13696688}
m_Layer: 0
- 114: {fileID: 11470636}
m_Layer: 10
m_Name: tree_c
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6181084, y: 1.863579, z: 0.7613913}
m_Center: {x: -0.065864384, y: 0.6477817, z: 0.024343014}
--- !u!114 &11470636
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 165086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13696688
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 165086}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2371930}
- 65: {fileID: 6516580}
- 136: {fileID: 13632140}
m_Layer: 0
- 114: {fileID: 11419718}
m_Layer: 10
m_Name: tree_d
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5760701, y: 1.863579, z: 0.744576}
m_Center: {x: -0.028029919, y: 0.6477817, z: 0.11682731}
--- !u!114 &11419718
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 171682}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13632140
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 171682}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2358700}
- 65: {fileID: 6557636}
- 136: {fileID: 13602136}
m_Layer: 0
- 114: {fileID: 11418634}
m_Layer: 10
m_Name: tree_e
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5760701, y: 1.863579, z: 0.6016457}
m_Center: {x: 0.022416055, y: 0.6477817, z: 0.028546855}
--- !u!114 &11418634
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 149102}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13602136
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 149102}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2369234}
- 65: {fileID: 6592676}
- 136: {fileID: 13650074}
m_Layer: 0
- 114: {fileID: 11421062}
m_Layer: 10
m_Name: tree_f
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5928855, y: 1.863579, z: 0.5764227}
m_Center: {x: -0.019622281, y: 0.6477817, z: -0.05973357}
--- !u!114 &11421062
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 152768}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13650074
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 152768}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2351432}
- 65: {fileID: 6596764}
- 136: {fileID: 13606106}
m_Layer: 0
- 114: {fileID: 11448934}
m_Layer: 10
m_Name: tree_g
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.5928855, y: 1.863579, z: 0.5596073}
m_Center: {x: -0.019622266, y: 0.6477817, z: 0.04115835}
--- !u!114 &11448934
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 127092}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13606106
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 127092}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2321164}
- 65: {fileID: 6590442}
- 136: {fileID: 13643880}
m_Layer: 0
- 114: {fileID: 11467682}
m_Layer: 10
m_Name: tree_h
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6012932, y: 1.863579, z: 0.52597666}
m_Center: {x: 0.0434352, y: 0.6477817, z: 0.09160432}
--- !u!114 &11467682
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 193842}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13643880
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 193842}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2304336}
- 136: {fileID: 13638286}
- 65: {fileID: 6568660}
m_Layer: 0
- 114: {fileID: 11435386}
m_Layer: 10
m_Name: tree_i
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6012932, y: 1.863579, z: 0.52597666}
m_Center: {x: 0.0434352, y: 0.6477817, z: 0.09160432}
--- !u!114 &11435386
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 148196}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13638286
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 148196}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2337232}
- 136: {fileID: 13642360}
- 65: {fileID: 6580694}
m_Layer: 0
- 114: {fileID: 11403182}
m_Layer: 10
m_Name: tree_j
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6517391, y: 1.863579, z: 0.61005324}
m_Center: {x: -0.1079027, y: 0.6477817, z: 0.18408862}
--- !u!114 &11403182
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 172816}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13642360
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 172816}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2395890}
- 136: {fileID: 13642836}
- 65: {fileID: 6544254}
m_Layer: 0
- 114: {fileID: 11480858}
m_Layer: 10
m_Name: tree_k
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.71900046, y: 1.863579, z: 0.5848302}
m_Center: {x: -0.007010758, y: 0.6477817, z: 0.17147714}
--- !u!114 &11480858
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 122276}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13642836
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 122276}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2387932}
- 136: {fileID: 13639594}
- 65: {fileID: 6591150}
m_Layer: 0
- 114: {fileID: 11470904}
m_Layer: 10
m_Name: tree_l
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6097008, y: 1.863579, z: 0.61005324}
m_Center: {x: 0.014008403, y: 0.6477817, z: 0.12523499}
--- !u!114 &11470904
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 150418}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13639594
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 150418}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2359768}
- 136: {fileID: 13644988}
- 65: {fileID: 6505968}
m_Layer: 0
- 114: {fileID: 11404374}
m_Layer: 10
m_Name: tree_m
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6912986, y: 1.863579, z: 0.61911964}
m_Center: {x: -0.035856903, y: 0.6477817, z: -0.006228134}
--- !u!114 &11404374
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 153724}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13644988
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -104,6 +117,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 153724}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2311864}
- 136: {fileID: 13679778}
- 65: {fileID: 6503292}
m_Layer: 0
- 114: {fileID: 11452624}
m_Layer: 10
m_Name: tree_n
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.60063434, y: 1.863579, z: 0.60098684}
m_Center: {x: 0.009475246, y: 0.6477817, z: 0.102568924}
--- !u!114 &11452624
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 104176}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13679778
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 104176}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2318724}
- 136: {fileID: 13675584}
- 65: {fileID: 6560754}
m_Layer: 0
- 114: {fileID: 11413610}
m_Layer: 10
m_Name: tree_o
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.58250153, y: 1.863579, z: 0.58285403}
m_Center: {x: 0.018541634, y: 0.6477817, z: 0.17510034}
--- !u!114 &11413610
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 146902}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13675584
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 146902}
@@ -12,7 +12,8 @@ GameObject:
- 23: {fileID: 2379040}
- 136: {fileID: 13601666}
- 65: {fileID: 6507514}
m_Layer: 0
- 114: {fileID: 11467018}
m_Layer: 10
m_Name: tree_p
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -76,6 +77,18 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.58250153, y: 1.863579, z: 0.60098684}
m_Center: {x: 0.018541634, y: 0.6477817, z: 0.12070179}
--- !u!114 &11467018
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 150688}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b8cd925d7c12ac4bbd9fcd88c994642, type: 3}
m_Name:
m_EditorClassIdentifier:
fireStump: {fileID: 126760, guid: 3580956dbd3adf24faf43a118c5b9bdd, type: 2}
--- !u!136 &13601666
CapsuleCollider:
m_ObjectHideFlags: 1
@@ -108,6 +121,10 @@ Prefab:
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 150688}
@@ -46,28 +46,28 @@ Material:
m_Offset: {x: 0, y: 0}
data:
first:
name: _OcclusionMap
name: _EmissionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _EmissionMap
name: _DetailMask
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailMask
name: _DetailAlbedoMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailAlbedoMap
name: _OcclusionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -197,7 +197,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: e1f1466dd3c2a50449a14317a6fc40a8, type: 3}
m_Name:
m_EditorClassIdentifier:
DestroyTime: 100
DestroyTime: 5
--- !u!114 &11400006
MonoBehaviour:
m_ObjectHideFlags: 1
@@ -1896,6 +1896,10 @@ Prefab:
propertyPath: m_TagString
value: Bullet
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: DestroyTime
value: 5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 100002}
@@ -328,7 +328,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
HitEffect: {fileID: 100004}
MaxLength: 160
MaxLength: 20
AddLength: 0.05
Width: 0.1
NowLengthGlobal: 0
@@ -3518,7 +3518,7 @@ Prefab:
objectReference: {fileID: 0}
- target: {fileID: 0}
propertyPath: MaxLength
value: 160
value: 20
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -31,6 +31,7 @@ public class InputHandler : MonoBehaviour {
private Hashtable colorTableEnd = new Hashtable(); //original colors for the end Menu
public int index = 0;
public int endIndex = 0;
public bool waiterFader;
private bool wonGame;

//Input mapping
@@ -51,6 +52,7 @@ public class InputHandler : MonoBehaviour {
// Use this for initialization
void Start() {
Time.timeScale = 1;
if (waiterFader) StartCoroutine(screenFadeIn());
colorTable.Add("calibrateBtn", calibrateBtn.colors.normalColor);
colorTable.Add("quitBtn", quitBtn.colors.normalColor);
colorTable.Add("returnBtn", returnBtn.colors.normalColor);
@@ -380,4 +382,31 @@ public class InputHandler : MonoBehaviour {
Debug.Log("screenFade finished");
SceneManager.LoadScene(2);
}
IEnumerator screenFadeIn()
{
transitioning = true;
Renderer render = pureBlackObject.GetComponent<Renderer>();
pureBlackObject.SetActive(true);

yield return new WaitForSeconds(30);
float waitTime = 0.025f;
float opacity = 1;
Debug.Log("fading in");
while (opacity > 0)
{
Color c = render.material.color;
opacity = opacity - ((float)10 / (float)255);
c.a = opacity;
render.material.color = c;
float start = Time.unscaledTime;
while (Time.unscaledTime < start + waitTime)
{
yield return null;
}
}

Debug.Log("Not fading");
transitioning = false;
pureBlackObject.SetActive(false);
}
}
@@ -46,7 +46,7 @@ public class UFOHandler : MonoBehaviour {

bool canFireRight = true;

public bool UnlockAll = false;
public bool UnlockAll = true;

//public Vector3 PrintingIsDumb;

@@ -69,8 +69,6 @@ public class UFOHandler : MonoBehaviour {
HUDInfo.AddButton(XboxKey.A, "weaponA", 0.75f, 10);
unlockedB = true;
HUDInfo.AddButton(XboxKey.B, "weaponB", 0.75f, 150);
unlockedX = true;
HUDInfo.AddButton(XboxKey.X, "weaponX", 0.75f, 1);
}
}
void FixedUpdate() {
@@ -152,41 +150,30 @@ public class UFOHandler : MonoBehaviour {
public void destroyUFO() {
//handle destruction of UFO
moveCamera.isAlive = false;
GameObject.Find("Input Manager").GetComponent<InputHandler>().endGame(false);
}
public bool destructionUpdate(float value) {
//If destruction is enough for an upgrade, upgrade weapon and return true. Else return false
if (!unlockedA) {
if (value >= 1) {
if (!unlockedA)
{
if (value >= 1)
{
unlockedA = true;
HUDInfo.AddButton(XboxKey.A, "weaponA", 0.75f, 10);
return true;
}
return false;
}
else if (!unlockedB) {
if (value >= 1) {
else if (!unlockedB)
{
if (value >= 1)
{
unlockedB = true;
HUDInfo.AddButton(XboxKey.B, "weaponB", 0.75f, 150);
return true;
}
return false;
}
else if (!unlockedX) {
if (value >= 1) {
unlockedX = true;
HUDInfo.AddButton(XboxKey.X, "weaponX", 0.75f, 1);
return true;
}
return false;
}
else if (!unlockedY) {
if (value >= 1) {
unlockedY = true;
HUDInfo.AddButton(XboxKey.Y, "weaponY", 0.75f, 5);
return true;
}
return false;
}
else {
//can't upgrade any more, everything is unlocked. return false
return false;
@@ -240,6 +227,7 @@ public class UFOHandler : MonoBehaviour {
}
else {
Debug.Log("Cannot fire, getAmmo <= 0");
HUDInfo.callReload(XboxKey.A);
}
}
}
@@ -258,6 +246,7 @@ public class UFOHandler : MonoBehaviour {
HUDInfo.callReload(XboxKey.B);
}
}
HUDInfo.callReload(XboxKey.B);
}
}
public void fireX() {
@@ -300,6 +289,7 @@ public class UFOHandler : MonoBehaviour {
}
else {
Debug.Log("Cannot fire, getAmmo <= 0, is " + ammoCount);
HUDInfo.callReload(XboxAxis.RightTrigger);
}
}
}
@@ -338,7 +328,14 @@ public class UFOHandler : MonoBehaviour {
//hit a building, do abduct stuff
Debug.Log("hit building with abducter: " + abductHit.collider.name);
//do citizen abducting
abductHit.collider.GetComponent<destructable>().abductCitizen();
try
{
abductHit.collider.GetComponent<destructable>().abductCitizen();
}
catch (Exception e)
{
Debug.Log(e.Message);
}
}
}

@@ -73,6 +73,7 @@ public class building : MonoBehaviour, destructable {
for (int i = 0; i < childCount; i++) {
Transform childT = destructMesh.transform.GetChild(i);
if (childT.name == "Plane") {
childT.gameObject.SetActive(false);
Debug.Log("Skipping on: " + gameObject.name);
continue;
}
@@ -0,0 +1,32 @@
using UnityEngine;
using System.Collections;

public class carDestroy : MonoBehaviour, destructable {

public GameObject deadCar;
bool canSub = false;
Vector3 scale = new Vector3(24.20886f, 24.20886f, 24.20886f);
// Use this for initialization
void Start () {
if (deadCar != null) canSub = true;
}


public void CollisionFaker(bullet bulletScript) {
if (canSub) {
GameObject newStump = (GameObject)Instantiate(deadCar, gameObject.transform.position, gameObject.transform.rotation);
newStump.transform.localScale = scale;
newStump.GetComponent<Renderer>().materials = gameObject.GetComponent<Renderer>().materials;
newStump.SetActive(true);
}
HUDInfo.UpdateDestruction(5);
AudioDB.destroyTree.Play();
Destroy(gameObject);
}
public void abductCitizen() {
return;
}
public int getCitizenCount() {
return 0;
}
}
@@ -17,7 +17,7 @@ public class treeDestroy : MonoBehaviour, destructable {
newStump.SetActive(true);
}
HUDInfo.UpdateDestruction(5);
AudioDB.destroyTree.Play();
//AudioDB.destroyTree.Play();
Destroy(gameObject);
}
public void abductCitizen() {
@@ -0,0 +1,243 @@
using UnityEngine;
using System.Collections;

public class westWood : MonoBehaviour, destructable {

public GameObject DM_prefab;
private GameObject destructMesh;
public destroyCall destroyScript;
int citizenCount;
int rightHitDestructionAmount = 50;
int weapon1HitDestructionAmount = 20;
int weapon2HitDestructionAmount = 100;
int destructionAmount = 1000; //How many points we gain for destroying


int rightBulletHitCount = 0;
int leftBulletHitCount = 0;
int weapon1HitCount = 0;
int weapon2HitCount = 0;
int weapon3HitCount = 0;
int weapon4HitCount = 0;
int destructionBit; //How many points we gain for hit
public Vector3 scale;
public Vector3 newPosition;
public bool usePosition;
bool debug = false;
bool DontGenerate = false;
public bool resetPosition = false;
bool isDestroyed = false;
// Use this for initialization
void Start () {
citizenCount = Random.Range(0, 200);
if (scale.x == 0) {
scale = new Vector3(1, 1, 1);
}
//assign random values to fields
destructionAmount = Random.Range(100, 500);
rightHitDestructionAmount = Random.Range(5, 12);
weapon1HitCount = Random.Range(5, 15);
weapon2HitCount = Random.Range(25, 75);


destructionBit = (int)(0.1f * destructionAmount);
if (!DontGenerate) StartCoroutine(generateColliders());
}
void Update() {
if (debug && resetPosition && destructMesh != null) {
resetPosition = false;
destructMesh.transform.position = gameObject.transform.position;
Debug.Log("X: " + destructMesh.transform.localScale.x + ", Y: " + destructMesh.transform.localScale.y + ", Z: " + destructMesh.transform.localScale.z);
}
}

IEnumerator generateColliders() {
Vector3 rotation = gameObject.transform.rotation.eulerAngles;
rotation.x = 0;
destructMesh = (GameObject)Instantiate(DM_prefab, gameObject.transform.position, QuanternionHelper.Euler(rotation.x, rotation.y, rotation.z));
destructMesh.transform.localScale = scale;
if (usePosition) {
destructMesh.transform.position = newPosition;
}
else {
destructMesh.transform.position = gameObject.transform.position;
}
Material[] materials = gameObject.GetComponent<Renderer>().materials;
if (debug) {
//Debug mode, so don't generate colliders or anything of the sort
yield break;
}
destructMesh.AddComponent<buildDestruct>();

int childCount = destructMesh.transform.childCount;
for (int i = 0; i < childCount; i++) {
Transform childT = destructMesh.transform.GetChild(i);
if (childT.name == "Plane") {
childT.gameObject.SetActive(false);
Debug.Log("Skipping on: " + gameObject.name);
continue;
}
else {
childT.GetComponent<Renderer>().materials = materials;
MeshCollider collider = childT.gameObject.AddComponent<MeshCollider>();
Rigidbody rigid = childT.gameObject.AddComponent<Rigidbody>();
collider.convex = true;
rigid.drag = 1;
rigid.isKinematic = true; //set to false, when actually do simulations
//childT.gameObject.SetActive(false);
}

yield return null;
}
destructMesh.SetActive(false);
for (int i = 0; i < childCount; i++) {
Transform childT = destructMesh.transform.GetChild(i);
if (childT.name == "Plane") {
continue;
}
Rigidbody rigid = childT.GetComponent<Rigidbody>();
rigid.isKinematic = false;
}
}

void OnCollisionEnter(Collision col) {
Debug.Log("Colliding!");
if (col.rigidbody.gameObject.name == gameObject.name) {
//colliding with ourselves, ignore
Debug.Log("Colliding with ourselves");
}
else {
//Colliding on impactable
if (col.gameObject.layer == 11) {
//Debug.Log(gameObject.name + " collided with " + col.gameObject.name);
bullet bulletScript = col.gameObject.GetComponent<bullet>();
int weaponType = -2;
if (bulletScript != null) {
weaponType = bulletScript.getType();
}
switch (weaponType) {
case -1:
break;
case 0:
//Right Trigger
rightBulletHitCount++;
if (bulletScript != null) bulletScript.OnCollided(col);
if (rightBulletHitCount >= rightHitDestructionAmount) {
Debug.Log("Destroying the building: " + name);
destructMesh.SetActive(true);
GameObject.Destroy(gameObject);
HUDInfo.UpdateDestruction(destructionAmount);
}
else {
HUDInfo.UpdateDestruction(destructionBit);
}
break;
case 1:
//A weapon
break;
case 2:
break;
case 3:
break;
case 4:
break;
default:
Debug.Log("building collision: unsupported weaponType. Type: " + weaponType);
break;
}
bulletScript.OnCollided(col);
}
}
}
public void CollisionFaker(bullet bulletScript) {
if (bulletScript == null) {
Debug.Log("CollisionFaker null bulletScript!");
return;
}
//Debug.Log("Calling CollisionFaker()");
Debug.Log("bulletScript_type: " + bulletScript.getType());
switch (bulletScript.getType()) {
case -1:
break;
case 0:
//Right Trigger
rightBulletHitCount++;
if (rightBulletHitCount >= rightHitDestructionAmount && !isDestroyed) {
Debug.Log("Destroying the building: " + name);
destructMesh.SetActive(true);
GameObject.Destroy(gameObject);
HUDInfo.UpdateDestruction(destructionAmount);
AudioDB.destroyBuilding.Play();
isDestroyed = true;
killCitizens();
}
else {
HUDInfo.UpdateDestruction(destructionBit / rightHitDestructionAmount);
}
break;
case 1:
//A weapon
weapon1HitCount++;
//Debug.Log("A weapon hit, count: " + weapon1HitCount);
if (weapon1HitCount >= weapon1HitDestructionAmount && !isDestroyed) {
Debug.Log("Destroying the building: " + name);
destructMesh.SetActive(true);
GameObject.Destroy(gameObject);
HUDInfo.UpdateDestruction(destructionAmount);
isDestroyed = true;
AudioDB.destroyBuilding.Play();
killCitizens();
}
else {
HUDInfo.UpdateDestruction(Mathf.Clamp((int)(destructionBit / weapon1HitDestructionAmount),(int)1,(int)100));
}
break;
case 2:
//B weapon
weapon2HitCount++;
//Debug.Log("B weapon hit, count: " + weapon2HitCount);
if (weapon2HitCount >= weapon2HitDestructionAmount && !isDestroyed) {
Debug.Log("Destroying the building: " + name);
destructMesh.SetActive(true);
GameObject.Destroy(gameObject);
HUDInfo.UpdateDestruction(destructionAmount);
isDestroyed = true;
AudioDB.destroyBuilding.Play();
killCitizens();
}
else {
HUDInfo.UpdateDestruction(Mathf.Clamp((int)(destructionBit / weapon2HitDestructionAmount), (int)1, (int)100));
}
break;
case 3:
break;
case 4:
break;
default:
Debug.Log("building collision: unsupported weaponType. Type: " + bulletScript.getType());
break;
}
}

//adds points for each citizen kill
private void killCitizens() {
HUDInfo.UpdateDestruction(citizenCount * HUDInfo.citizenWorth);
}
public void abductCitizen() {
if (citizenCount >= 2) {
HUDInfo.UpdateDestruction(HUDInfo.citizenWorth * 4);
citizenCount = citizenCount - 2;
}
else if (citizenCount == 1) {
HUDInfo.UpdateDestruction(HUDInfo.citizenWorth * 2);
citizenCount = citizenCount - 1;
}
}

public int getCitizenCount() { return this.citizenCount; }
void Destroy()
{
GameObject.Find("Input Manager").GetComponent<InputHandler>().endGame(true);
}

}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
m_EditorVersion: 5.3.4f1
m_EditorVersion: 5.3.1f1
m_StandardAssetsVersion: 0