1
Fork 0
mirror of https://github.com/Steffo99/beat-td.git synced 2024-11-21 23:04:19 +00:00

Updated prefabs and animations

This commit is contained in:
Steffo 2018-04-22 15:02:46 +02:00
parent 7965eb999b
commit 6ff8b1a15e
13 changed files with 326 additions and 207 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ sysinfo.txt
# Builds # Builds
*.apk *.apk
*.unitypackage *.unitypackage
Build.7z

View file

@ -60,6 +60,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Assets\Scripts\AlignToGridContinuous.cs" /> <Compile Include="Assets\Scripts\AlignToGridContinuous.cs" />
<Compile Include="Assets\Scripts\DepthFromY.cs" />
<Compile Include="Assets\Scripts\EnemyMovement.cs" /> <Compile Include="Assets\Scripts\EnemyMovement.cs" />
<Compile Include="Assets\Scripts\EnemyStatus.cs" /> <Compile Include="Assets\Scripts\EnemyStatus.cs" />
<Compile Include="Assets\Scripts\GameStatus.cs" /> <Compile Include="Assets\Scripts\GameStatus.cs" />

View file

@ -9,35 +9,19 @@ Prefab:
m_Modifications: [] m_Modifications: []
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 0} m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1931375205411034} m_RootGameObject: {fileID: 1568105291510024}
m_IsPrefabAsset: 1 m_IsPrefabAsset: 1
--- !u!1 &1885041436932602 --- !u!1 &1568105291510024
GameObject:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6
m_Component:
- component: {fileID: 4624677675439614}
- component: {fileID: 212758524482640446}
m_Layer: 0
m_Name: Tower Ghost
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1931375205411034
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4855367425875836} - component: {fileID: 4433814812019978}
- component: {fileID: 114788228736104936} - component: {fileID: 114153136693258118}
- component: {fileID: 114351781720872926} - component: {fileID: 114321963035045996}
- component: {fileID: 82737862789592158} - component: {fileID: 82404362739563692}
m_Layer: 0 m_Layer: 0
m_Name: GameController m_Name: GameController
m_TagString: GameController m_TagString: GameController
@ -45,19 +29,35 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!1 &1951267145744876 --- !u!1 &1570003630907680
GameObject:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6
m_Component:
- component: {fileID: 4248322289035362}
- component: {fileID: 212126329877722410}
m_Layer: 0
m_Name: Tower Ghost
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1753295311873578
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4131835586929778} - component: {fileID: 4504710444344426}
- component: {fileID: 212292163805447310} - component: {fileID: 212503120060765600}
- component: {fileID: 114668229986735790} - component: {fileID: 114894975149290724}
- component: {fileID: 114644921366275946} - component: {fileID: 114032699107723242}
- component: {fileID: 114172803127918194} - component: {fileID: 114571896683674368}
- component: {fileID: 114581508118254142} - component: {fileID: 114020623289143988}
m_Layer: 0 m_Layer: 0
m_Name: Cursor m_Name: Cursor
m_TagString: Untagged m_TagString: Untagged
@ -65,53 +65,53 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!4 &4131835586929778 --- !u!4 &4248322289035362
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876} m_GameObject: {fileID: 1570003630907680}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4624677675439614}
m_Father: {fileID: 4855367425875836}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &4624677675439614
Transform:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1885041436932602}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 4131835586929778} m_Father: {fileID: 4504710444344426}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &4855367425875836 --- !u!4 &4433814812019978
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1931375205411034} m_GameObject: {fileID: 1568105291510024}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0, y: -0, z: 0} m_LocalPosition: {x: -0, y: -0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 4131835586929778} - {fileID: 4504710444344426}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &82737862789592158 --- !u!4 &4504710444344426
Transform:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1753295311873578}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4248322289035362}
m_Father: {fileID: 4433814812019978}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &82404362739563692
AudioSource: AudioSource:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1931375205411034} m_GameObject: {fileID: 1568105291510024}
m_Enabled: 1 m_Enabled: 1
serializedVersion: 4 serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0} OutputAudioMixerGroup: {fileID: 0}
@ -201,39 +201,12 @@ AudioSource:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
--- !u!114 &114172803127918194 --- !u!114 &114020623289143988
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876} m_GameObject: {fileID: 1753295311873578}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7c032f99ed9e86f429881bf290ce3c57, type: 3}
m_Name:
m_EditorClassIdentifier:
selected: {fileID: 1353675573854854, guid: 8436f60a30d755346a1829fc1154f0a2, type: 2}
--- !u!114 &114351781720872926
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1931375205411034}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: def57d6e144c2bf4d9f47d39dffc1392, type: 3}
m_Name:
m_EditorClassIdentifier:
money: 0
lives: 10
moneyTextObject: {fileID: 0}
livesTextObject: {fileID: 0}
--- !u!114 &114581508118254142
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56e5631403f3f1d4fa97ec77bcdc0d02, type: 3} m_Script: {fileID: 11500000, guid: 56e5631403f3f1d4fa97ec77bcdc0d02, type: 3}
@ -243,34 +216,23 @@ MonoBehaviour:
- {fileID: 1353675573854854, guid: 8436f60a30d755346a1829fc1154f0a2, type: 2} - {fileID: 1353675573854854, guid: 8436f60a30d755346a1829fc1154f0a2, type: 2}
- {fileID: 1116464442260662, guid: 68f4cf9ed4f721340aec1ee79ef4c967, type: 2} - {fileID: 1116464442260662, guid: 68f4cf9ed4f721340aec1ee79ef4c967, type: 2}
- {fileID: 1790912687524718, guid: f84d521163ebde447879f581a32ca118, type: 2} - {fileID: 1790912687524718, guid: f84d521163ebde447879f581a32ca118, type: 2}
--- !u!114 &114644921366275946 --- !u!114 &114032699107723242
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876} m_GameObject: {fileID: 1753295311873578}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2a21dfc8c9bdaec4c962368a99c026a1, type: 3} m_Script: {fileID: 11500000, guid: 2a21dfc8c9bdaec4c962368a99c026a1, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
--- !u!114 &114668229986735790 --- !u!114 &114153136693258118
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876} m_GameObject: {fileID: 1568105291510024}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 22ddc8a836a68ed45893dbb06b0b3470, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &114788228736104936
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1931375205411034}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 03535b255b63aaa4b8f4718a4e79b51d, type: 3} m_Script: {fileID: 11500000, guid: 03535b255b63aaa4b8f4718a4e79b51d, type: 3}
@ -279,12 +241,96 @@ MonoBehaviour:
bpm: 120 bpm: 120
delay: 0 delay: 0
songTime: 0 songTime: 0
--- !u!212 &212292163805447310 --- !u!114 &114321963035045996
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1568105291510024}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: def57d6e144c2bf4d9f47d39dffc1392, type: 3}
m_Name:
m_EditorClassIdentifier:
money: 0
lives: 10
moneyTextObject: {fileID: 0}
livesTextObject: {fileID: 0}
--- !u!114 &114571896683674368
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1753295311873578}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7c032f99ed9e86f429881bf290ce3c57, type: 3}
m_Name:
m_EditorClassIdentifier:
selected: {fileID: 1353675573854854, guid: 8436f60a30d755346a1829fc1154f0a2, type: 2}
--- !u!114 &114894975149290724
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1753295311873578}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 22ddc8a836a68ed45893dbb06b0b3470, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!212 &212126329877722410
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1951267145744876} m_GameObject: {fileID: 1570003630907680}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RenderingLayerMask: 4294967295
m_Materials:
- {fileID: 2100000, guid: 3225a247bbdd3804a98458c966a95829, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 51625a16e15d1d0469c89d70682706ac, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!212 &212503120060765600
SpriteRenderer:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1753295311873578}
m_Enabled: 1 m_Enabled: 1
m_CastShadows: 0 m_CastShadows: 0
m_ReceiveShadows: 0 m_ReceiveShadows: 0
@ -325,49 +371,3 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!212 &212758524482640446
SpriteRenderer:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1885041436932602}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RenderingLayerMask: 4294967295
m_Materials:
- {fileID: 2100000, guid: 3225a247bbdd3804a98458c966a95829, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 4f20badc3e7eb924b91b6e10b08c5bc4, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0

View file

@ -23,6 +23,7 @@ GameObject:
- component: {fileID: 61520748459331576} - component: {fileID: 61520748459331576}
- component: {fileID: 114539313612277732} - component: {fileID: 114539313612277732}
- component: {fileID: 82505325396824290} - component: {fileID: 82505325396824290}
- component: {fileID: 114639033814235574}
m_Layer: 0 m_Layer: 0
m_Name: Hat Tower m_Name: Hat Tower
m_TagString: Untagged m_TagString: Untagged
@ -59,7 +60,7 @@ BoxCollider2D:
m_SpriteTilingProperty: m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1} oldSize: {x: 0.925, y: 1.025}
newSize: {x: 1, y: 1} newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5 adaptiveTilingThreshold: 0.5
drawMode: 0 drawMode: 0
@ -174,6 +175,19 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b189e42d783dcbd40a81d0ae85703c53, type: 3} m_Script: {fileID: 11500000, guid: b189e42d783dcbd40a81d0ae85703c53, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
standardSprite: {fileID: 21300000, guid: 51625a16e15d1d0469c89d70682706ac, type: 3}
alternateSprite: {fileID: 21300000, guid: aa703597b71be9e49b4c69426512c553, type: 3}
--- !u!114 &114639033814235574
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1353675573854854}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6128520e3bbd52845adc012369e21f79, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!212 &212545701488427000 --- !u!212 &212545701488427000
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -209,7 +223,7 @@ SpriteRenderer:
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 25a3a3b6ddf88bf47a89cb75f8655f4e, type: 3} m_Sprite: {fileID: 21300000, guid: 51625a16e15d1d0469c89d70682706ac, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0

View file

@ -23,6 +23,7 @@ GameObject:
- component: {fileID: 61588744058150434} - component: {fileID: 61588744058150434}
- component: {fileID: 114295014103482780} - component: {fileID: 114295014103482780}
- component: {fileID: 82939556679490172} - component: {fileID: 82939556679490172}
- component: {fileID: 114175265770913682}
m_Layer: 0 m_Layer: 0
m_Name: Kick Tower m_Name: Kick Tower
m_TagString: Untagged m_TagString: Untagged
@ -59,8 +60,8 @@ BoxCollider2D:
m_SpriteTilingProperty: m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1} oldSize: {x: 1.0416666, y: 1.1083333}
newSize: {x: 1, y: 1} newSize: {x: 0.98333335, y: 1.05}
adaptiveTilingThreshold: 0.5 adaptiveTilingThreshold: 0.5
drawMode: 0 drawMode: 0
adaptiveTiling: 0 adaptiveTiling: 0
@ -163,6 +164,17 @@ AudioSource:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
--- !u!114 &114175265770913682
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1116464442260662}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6128520e3bbd52845adc012369e21f79, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &114295014103482780 --- !u!114 &114295014103482780
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -174,6 +186,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9a37ebf9d8c1c354981a443ff34a5b04, type: 3} m_Script: {fileID: 11500000, guid: 9a37ebf9d8c1c354981a443ff34a5b04, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
standardSprite: {fileID: 21300000, guid: 5268fd080cf70a8439aa9be1c9c73596, type: 3}
alternateSprite: {fileID: 21300000, guid: 619f9b119745a7c4dac29348c3464a39, type: 3}
--- !u!212 &212110504005834194 --- !u!212 &212110504005834194
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -209,12 +223,12 @@ SpriteRenderer:
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: dafe624326fac4b40910fb5570f2b15e, type: 3} m_Sprite: {fileID: 21300000, guid: 5268fd080cf70a8439aa9be1c9c73596, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0
m_DrawMode: 0 m_DrawMode: 0
m_Size: {x: 1, y: 1} m_Size: {x: 0.98333335, y: 1.05}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1

View file

@ -23,6 +23,7 @@ GameObject:
- component: {fileID: 61986564726869870} - component: {fileID: 61986564726869870}
- component: {fileID: 114808594875834540} - component: {fileID: 114808594875834540}
- component: {fileID: 82678648289488406} - component: {fileID: 82678648289488406}
- component: {fileID: 114865138164003484}
m_Layer: 0 m_Layer: 0
m_Name: Snare Tower m_Name: Snare Tower
m_TagString: Untagged m_TagString: Untagged
@ -59,7 +60,7 @@ BoxCollider2D:
m_SpriteTilingProperty: m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1} oldSize: {x: 0.98333335, y: 1.05}
newSize: {x: 1, y: 1} newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5 adaptiveTilingThreshold: 0.5
drawMode: 0 drawMode: 0
@ -174,6 +175,19 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2e76d74a3b15d4d44ab8712d0aef6d7c, type: 3} m_Script: {fileID: 11500000, guid: 2e76d74a3b15d4d44ab8712d0aef6d7c, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
standardSprite: {fileID: 21300000, guid: 507ee0c49799ed2498ae8dad87342cd4, type: 3}
alternateSprite: {fileID: 21300000, guid: c3686ecb6c931114082a4e8deac546f7, type: 3}
--- !u!114 &114865138164003484
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1790912687524718}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6128520e3bbd52845adc012369e21f79, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!212 &212570838656098308 --- !u!212 &212570838656098308
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
@ -209,7 +223,7 @@ SpriteRenderer:
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 4f20badc3e7eb924b91b6e10b08c5bc4, type: 3} m_Sprite: {fileID: 21300000, guid: 507ee0c49799ed2498ae8dad87342cd4, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0

View file

@ -305,58 +305,6 @@ CanvasRenderer:
m_PrefabInternal: {fileID: 0} m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 506261048} m_GameObject: {fileID: 506261048}
m_CullTransparentMesh: 0 m_CullTransparentMesh: 0
--- !u!1001 &519203120
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4855367425875836, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114351781720872926, guid: 75e554cdca74b174b8f51d9615688c48,
type: 2}
propertyPath: moneyTextObject
value:
objectReference: {fileID: 244445659}
- target: {fileID: 114351781720872926, guid: 75e554cdca74b174b8f51d9615688c48,
type: 2}
propertyPath: livesTextObject
value:
objectReference: {fileID: 506261048}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
m_IsPrefabAsset: 0
--- !u!1 &519420028 --- !u!1 &519420028
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -496,6 +444,58 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1026217350
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4433814812019978, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114321963035045996, guid: 75e554cdca74b174b8f51d9615688c48,
type: 2}
propertyPath: moneyTextObject
value:
objectReference: {fileID: 244445659}
- target: {fileID: 114321963035045996, guid: 75e554cdca74b174b8f51d9615688c48,
type: 2}
propertyPath: livesTextObject
value:
objectReference: {fileID: 506261048}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 75e554cdca74b174b8f51d9615688c48, type: 2}
m_IsPrefabAsset: 0
--- !u!1001 &1559664665 --- !u!1001 &1559664665
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -535,6 +535,16 @@ Prefab:
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 4 value: 4
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 212316375063999506, guid: adbccfb25f3d90b438ea1dcd6c6db7c6,
type: 2}
propertyPath: m_SortingLayerID
value: 535554803
objectReference: {fileID: 0}
- target: {fileID: 212316375063999506, guid: adbccfb25f3d90b438ea1dcd6c6db7c6,
type: 2}
propertyPath: m_SortingLayer
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: adbccfb25f3d90b438ea1dcd6c6db7c6, type: 2} m_SourcePrefab: {fileID: 100100000, guid: adbccfb25f3d90b438ea1dcd6c6db7c6, type: 2}
m_IsPrefabAsset: 0 m_IsPrefabAsset: 0

View file

@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DepthFromY : MonoBehaviour {
private SpriteRenderer spriteRenderer;
void Start () {
spriteRenderer = gameObject.GetComponent<SpriteRenderer>();
spriteRenderer.sortingOrder = Mathf.CeilToInt(-transform.position.y * 100);
}
// Update is called once per frame
void Update () {
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6128520e3bbd52845adc012369e21f79
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -4,6 +4,9 @@ using UnityEngine;
public class HatTower : MonoBehaviour { public class HatTower : MonoBehaviour {
public Sprite standardSprite;
public Sprite alternateSprite;
private AudioSource hatSource; private AudioSource hatSource;
private SongData songData; private SongData songData;
private SpriteRenderer spriteRenderer; private SpriteRenderer spriteRenderer;
@ -38,13 +41,21 @@ public class HatTower : MonoBehaviour {
Debug.Log(power.ToString("0.00")); Debug.Log(power.ToString("0.00"));
//Start the cooldown //Start the cooldown
cooldownRemaining = cooldown; cooldownRemaining = cooldown;
//Change the sprite
spriteRenderer.sprite = alternateSprite;
Invoke("OnEndAnimation", Time.fixedDeltaTime * 6);
} }
} }
} }
void OnEndAnimation()
{
spriteRenderer.sprite = standardSprite;
}
void OnBeat() void OnBeat()
{ {
spriteRenderer.color = Color.black; spriteRenderer.color = Color.yellow;
Invoke("ResetColor", Time.fixedDeltaTime * 2); Invoke("ResetColor", Time.fixedDeltaTime * 2);
} }

View file

@ -4,6 +4,9 @@ using UnityEngine;
public class KickTower : MonoBehaviour { public class KickTower : MonoBehaviour {
public Sprite standardSprite;
public Sprite alternateSprite;
private AudioSource kickSource; private AudioSource kickSource;
private SongData songData; private SongData songData;
private SpriteRenderer spriteRenderer; private SpriteRenderer spriteRenderer;
@ -38,13 +41,21 @@ public class KickTower : MonoBehaviour {
Debug.Log(power.ToString("0.00")); Debug.Log(power.ToString("0.00"));
//Start the cooldown //Start the cooldown
cooldownRemaining = cooldown; cooldownRemaining = cooldown;
//Change the sprite
spriteRenderer.sprite = alternateSprite;
Invoke("OnEndAnimation", Time.fixedDeltaTime * 20);
} }
} }
} }
void OnEndAnimation()
{
spriteRenderer.sprite = standardSprite;
}
void OnBeat() void OnBeat()
{ {
spriteRenderer.color = Color.black; spriteRenderer.color = Color.yellow;
Invoke("ResetColor", Time.fixedDeltaTime * 2); Invoke("ResetColor", Time.fixedDeltaTime * 2);
} }

View file

@ -4,6 +4,9 @@ using UnityEngine;
public class SnareTower : MonoBehaviour { public class SnareTower : MonoBehaviour {
public Sprite standardSprite;
public Sprite alternateSprite;
private AudioSource snareSource; private AudioSource snareSource;
private SongData songData; private SongData songData;
private SpriteRenderer spriteRenderer; private SpriteRenderer spriteRenderer;
@ -18,7 +21,7 @@ public class SnareTower : MonoBehaviour {
//The period is 120 / bpm //The period is 120 / bpm
cooldown = 44 / songData.bpm; cooldown = 44 / songData.bpm;
//Find next beat //Find next beat
float nextBeatIn = 120 / songData.bpm - (songData.songTime - (Mathf.Floor((songData.songTime + 60 / songData.bpm) / 120 * songData.bpm) * 120 / songData.bpm)); float nextBeatIn = 180 / songData.bpm - (songData.songTime - (Mathf.Floor(songData.songTime / 120 * songData.bpm) * 120 / songData.bpm));
InvokeRepeating("OnBeat", nextBeatIn, 120 / songData.bpm); InvokeRepeating("OnBeat", nextBeatIn, 120 / songData.bpm);
} }
@ -38,13 +41,21 @@ public class SnareTower : MonoBehaviour {
Debug.Log(power.ToString("0.00")); Debug.Log(power.ToString("0.00"));
//Start the cooldown //Start the cooldown
cooldownRemaining = cooldown; cooldownRemaining = cooldown;
//Change the sprite
spriteRenderer.sprite = alternateSprite;
Invoke("OnEndAnimation", Time.fixedDeltaTime * 10);
} }
} }
} }
void OnEndAnimation()
{
spriteRenderer.sprite = standardSprite;
}
void OnBeat() void OnBeat()
{ {
spriteRenderer.color = Color.black; spriteRenderer.color = Color.yellow;
Invoke("ResetColor", Time.fixedDeltaTime * 2); Invoke("ResetColor", Time.fixedDeltaTime * 2);
} }

View file

@ -38,6 +38,9 @@ TagManager:
- -
- -
m_SortingLayers: m_SortingLayers:
- name: Background
uniqueID: 535554803
locked: 0
- name: Default - name: Default
uniqueID: 0 uniqueID: 0
locked: 0 locked: 0