Merge branch 'main' of https://gitea.deprived.dev/Sveskejuice/3DTD
This commit is contained in:
commit
c440affdd0
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d76ce3cfdf2c5d24688b521c9cc35ebf
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 339d07864c80ebb409330e46e11a8211
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e038767673552d4fb9f6e5927df20b2
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c37548871dcc24746aef5f5f5d248453
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,23 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d0fe8353aa0b5024699b5632cb56d98f
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 522a87c90064f5148a3b802ab82180b6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -911,7 +911,7 @@ PrefabInstance:
|
|||
- target: {fileID: 527409087646353271, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.7
|
||||
value: 0.84
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 527409087646353271, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
type: 3}
|
||||
|
@ -963,6 +963,11 @@ PrefabInstance:
|
|||
propertyPath: m_Name
|
||||
value: Turret
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4657144566828515878, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5565472806559733162, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
type: 3}
|
||||
propertyPath: m_Size.x
|
||||
|
@ -1036,6 +1041,12 @@ PrefabInstance:
|
|||
insertIndex: -1
|
||||
addedObject: {fileID: 7437064479105606814}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: f54a14318952c90c5b47a300aedb0d15, type: 3}
|
||||
--- !u!1 &4140468893953896691 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 4657144566828515878, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8778754593817981653}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8488737342646939416 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 872127579833310669, guid: f54a14318952c90c5b47a300aedb0d15,
|
||||
|
@ -1067,15 +1078,16 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 3c6fb039e74d12a7bbfde22591bc7eee, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
selectedUI: {fileID: 4140468893953896691}
|
||||
barrel: {fileID: 2740722787380423134}
|
||||
horizontalArc: {fileID: 8981486734084153558}
|
||||
verticalArc: {fileID: 5247639431516572416}
|
||||
spaceBetweenGhosts: 0.5
|
||||
trajectoryBounces: 4
|
||||
trajectoryBounces: 3
|
||||
ghostPrefab: {fileID: 2962360034595352958, guid: f657bc53e175aad72a117bf3ef556359,
|
||||
type: 3}
|
||||
trajectoryLine: {fileID: 3987931586699850031}
|
||||
trajectoryObjectPoolSize: 25
|
||||
trajectoryObjectPoolSize: 100
|
||||
wallMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 257
|
||||
|
@ -1083,7 +1095,7 @@ MonoBehaviour:
|
|||
projectileSequence:
|
||||
- Arc: 0
|
||||
Amount: 1
|
||||
Speed: 20
|
||||
Speed: 100
|
||||
bulletPrefab: {fileID: 2962360034595352958, guid: 32921dff6554af324ba0001ca8b56fee,
|
||||
type: 3}
|
||||
Burst: 0
|
||||
|
|
|
@ -123,6 +123,110 @@ NavMeshSettings:
|
|||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &66896262
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 968288136}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -6.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 7.475
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: -90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap
|
||||
value: 0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.x
|
||||
value: 0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.y
|
||||
value: 0.2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: gridType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.x
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.y
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: GridSpawnerWall-z
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3}
|
||||
--- !u!4 &66896263 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 66896262}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &203396308
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -586,7 +690,7 @@ PrefabInstance:
|
|||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -7.3
|
||||
value: -6.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
|
@ -646,12 +750,12 @@ PrefabInstance:
|
|||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.x
|
||||
value: 13
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.y
|
||||
value: 8
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
|
@ -976,7 +1080,7 @@ PrefabInstance:
|
|||
- target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: sphereRange
|
||||
value: 1.5
|
||||
value: 2.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
|
@ -1011,7 +1115,7 @@ PrefabInstance:
|
|||
- target: {fileID: 5664717836218291588, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_Orbits.Array.data[2].m_Height
|
||||
value: -5
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5753661378891917460, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
|
@ -1041,12 +1145,12 @@ PrefabInstance:
|
|||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: -0.098769404
|
||||
value: -0.098769374
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0.028326692
|
||||
value: -0.028326679
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
|
@ -1147,6 +1251,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: acef1d7c80f784543acd3e1571e99495, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
RebuildGrid: 0
|
||||
DebugTowerPrefab: {fileID: 8488737342646939416, guid: 9415cb10a1bd579269301ca4f61a1554,
|
||||
type: 3}
|
||||
SilhouetteMaterial: {fileID: 2100000, guid: 0610eb89b05f0b546929db3664a351d8, type: 2}
|
||||
|
@ -1167,8 +1272,182 @@ Transform:
|
|||
- {fileID: 1554436712}
|
||||
- {fileID: 2098922851}
|
||||
- {fileID: 359510069}
|
||||
- {fileID: 1016399494}
|
||||
- {fileID: 66896263}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1001440767
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 167310329963132665, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Managers
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2430881567806754708, guid: 9d875dda41d470948bbe6fd408a7e835,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 9d875dda41d470948bbe6fd408a7e835, type: 3}
|
||||
--- !u!1001 &1016399493
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 968288136}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -6.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -7.475
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.70710677
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0.70710677
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap
|
||||
value: 0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.x
|
||||
value: 0.2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.y
|
||||
value: 0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: gridType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.x
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.y
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: GridSpawnerWall+z
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3}
|
||||
--- !u!4 &1016399494 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1016399493}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1515922344
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1563,12 +1842,12 @@ PrefabInstance:
|
|||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 9.7
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -7.3
|
||||
value: -6.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
|
@ -1613,12 +1892,12 @@ PrefabInstance:
|
|||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.x
|
||||
value: 0.2
|
||||
value: 0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: Gap.y
|
||||
value: 0.1
|
||||
value: 0.2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
|
@ -1628,12 +1907,12 @@ PrefabInstance:
|
|||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.x
|
||||
value: 8
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
propertyPath: GridSize.y
|
||||
value: 13
|
||||
value: 10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830,
|
||||
type: 3}
|
||||
|
@ -1659,3 +1938,4 @@ SceneRoots:
|
|||
- {fileID: 1515922345}
|
||||
- {fileID: 929277189}
|
||||
- {fileID: 968288136}
|
||||
- {fileID: 1001440767}
|
||||
|
|
|
@ -414,74 +414,6 @@ Transform:
|
|||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
|
||||
--- !u!1001 &658701657
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1415246146501367120, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Gripper
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 1.22
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.517
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -0.14
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1794726729777156074, guid: 91554800af50ec827822f376e2fc5f64,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 91554800af50ec827822f376e2fc5f64, type: 3}
|
||||
--- !u!1 &769011490
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -644,21 +576,6 @@ PrefabInstance:
|
|||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 7437064479105606814, guid: 9415cb10a1bd579269301ca4f61a1554,
|
||||
type: 3}
|
||||
propertyPath: trajectoryBounces
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7437064479105606814, guid: 9415cb10a1bd579269301ca4f61a1554,
|
||||
type: 3}
|
||||
propertyPath: trajectoryObjectPoolSize
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7437064479105606814, guid: 9415cb10a1bd579269301ca4f61a1554,
|
||||
type: 3}
|
||||
propertyPath: projectileSequence.Array.data[0].Speed
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8488737342646939416, guid: 9415cb10a1bd579269301ca4f61a1554,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
|
@ -960,6 +877,10 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
Balance: 0
|
||||
IsBuildMode: 0
|
||||
ShopSelectedTower:
|
||||
name:
|
||||
price: 0
|
||||
prefab: {fileID: 0}
|
||||
--- !u!4 &1395991987
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1080,74 +1001,6 @@ Transform:
|
|||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
|
||||
--- !u!1001 &1671091699
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 3.934035
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.15400258
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -5.620848
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 72980d1326f21c0ffa34ea09162d1234,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Tesla
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 72980d1326f21c0ffa34ea09162d1234, type: 3}
|
||||
--- !u!1001 &1732242001
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1294,7 +1147,7 @@ PrefabInstance:
|
|||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: -0.1380528
|
||||
value: -0.13805284
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
|
@ -1309,7 +1162,7 @@ PrefabInstance:
|
|||
- target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0.13815574
|
||||
value: -0.13815573
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8882344377078016156, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
|
@ -1506,84 +1359,6 @@ Camera:
|
|||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1732242001}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &2047642824
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.33
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.08219504
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.07
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 269373318190900745, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 645933633211530419, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: MrLazer
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7605001933718563855, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: startHealth
|
||||
value: 1e+14
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7605001933718563855, guid: 4e5e3131ea2a78cfd93219be3806da6d,
|
||||
type: 3}
|
||||
propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.size
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 4e5e3131ea2a78cfd93219be3806da6d, type: 3}
|
||||
--- !u!1001 &667212637924654954
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1667,8 +1442,5 @@ SceneRoots:
|
|||
- {fileID: 1621186633}
|
||||
- {fileID: 1797347352}
|
||||
- {fileID: 1732242001}
|
||||
- {fileID: 1671091699}
|
||||
- {fileID: 504816165}
|
||||
- {fileID: 1395991987}
|
||||
- {fileID: 658701657}
|
||||
- {fileID: 2047642824}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Enumeration;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New AudioLibrary", menuName = "ZUtility/AudioLibrary")]
|
||||
public class AudioLibraryObject : ScriptableObject
|
||||
{
|
||||
public AudioClip[] Clips;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3bbffcd63584e8040b9a8db3b8d51737
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,137 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
public class AudioManager : MonoBehaviour
|
||||
{
|
||||
public static AudioManager Instance;
|
||||
public AudioLibraryObject audioLibrary;
|
||||
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (Instance is null)
|
||||
{
|
||||
Instance = this;
|
||||
// TODO: manager itself should not handle this
|
||||
// DontDestroyOnLoad(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
Destroy(Instance);
|
||||
Instance = this;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
Instance = null;
|
||||
}
|
||||
|
||||
public static AudioClip FindAudioClip(string nameOfClip)
|
||||
{
|
||||
return Instance.audioLibrary.Clips.First(x => x.name == nameOfClip);
|
||||
}
|
||||
|
||||
public static AudioSource PlaySound(AudioClip clip, Vector3 sourcePos, bool manuallyHandle = false, bool is3D = true, bool loop = false, bool fadeIn = false)
|
||||
{
|
||||
return PlaySoundInternal(clip, sourcePos, manuallyHandle, is3D, loop, fadeIn);
|
||||
}
|
||||
|
||||
public static AudioSource PlaySound(string nameOfClip, Vector3 sourcePos, bool manuallyHandle = false, bool is3D = true, bool loop = false, bool fadeIn = false)
|
||||
{
|
||||
AudioClip clip = FindAudioClip(nameOfClip);
|
||||
return PlaySoundInternal(clip, sourcePos, manuallyHandle, is3D, loop, fadeIn);
|
||||
}
|
||||
|
||||
private static AudioSource PlaySoundInternal(AudioClip clip, Vector3 sourcePos, bool manuallyHandle, bool is3D, bool loop, bool fadeIn)
|
||||
{
|
||||
if (Instance == null)
|
||||
{
|
||||
Debug.LogWarning("AudioManager has not been initialized. Please initialize it before use.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var sourceObject = new GameObject("SoundSource");
|
||||
var audioSource = sourceObject.AddComponent<AudioSource>();
|
||||
audioSource.loop = loop;
|
||||
audioSource.clip = clip;
|
||||
sourceObject.transform.position = sourcePos;
|
||||
sourceObject.transform.parent = Instance.transform;
|
||||
|
||||
if (is3D)
|
||||
{
|
||||
audioSource.rolloffMode = AudioRolloffMode.Linear;
|
||||
audioSource.spatialBlend = 1f;
|
||||
}
|
||||
|
||||
if (!manuallyHandle)
|
||||
Instance.StartCoroutine(Instance.StartSound(audioSource, fadeIn));
|
||||
return audioSource;
|
||||
}
|
||||
|
||||
public static List<SoundSource> AliveSources = new List<SoundSource>();
|
||||
IEnumerator StartSound(AudioSource audioSource, bool fadeIn = false)
|
||||
{
|
||||
AliveSources.Add(new SoundSource(audioSource));
|
||||
|
||||
if (fadeIn)
|
||||
{
|
||||
audioSource.volume = 0;
|
||||
StartCoroutine(StartMusicFadeIn(audioSource));
|
||||
}
|
||||
|
||||
|
||||
audioSource.Play();
|
||||
yield return new WaitUntil(() => audioSource.gameObject == null || !audioSource.isPlaying);
|
||||
|
||||
try
|
||||
{
|
||||
Destroy(audioSource.gameObject);
|
||||
}
|
||||
catch (SystemException err)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerator StartMusicFadeIn(AudioSource AS)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (AS.volume >= 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
AS.volume += 0.01f;
|
||||
yield return new WaitForSecondsRealtime(0.05f);
|
||||
}
|
||||
}
|
||||
|
||||
public void StopAllAudio()
|
||||
{
|
||||
StopAllCoroutines();
|
||||
foreach (SoundSource item in AliveSources)
|
||||
{
|
||||
if (item == null || item.source == null) continue;
|
||||
|
||||
item.source.Stop();
|
||||
Destroy(item.source.gameObject);
|
||||
}
|
||||
|
||||
AliveSources.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public class SoundSource
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public AudioSource source { get; set; }
|
||||
public SoundSource(AudioSource originalSource)
|
||||
{
|
||||
source = originalSource;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 36c44df45a33eca4285d258763a7b018
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,5 +1,4 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cinemachine;
|
||||
using UnityEngine;
|
||||
|
||||
public class CameraSlotClickDetect : MonoBehaviour
|
||||
|
@ -32,6 +31,8 @@ public class CameraSlotClickDetect : MonoBehaviour
|
|||
if (tower != null)
|
||||
{
|
||||
GameManager.Instance.SelectedTower = tower;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask))
|
||||
|
|
|
@ -4,16 +4,22 @@ using UnityEngine.Assertions;
|
|||
|
||||
public abstract class Tower : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private GameObject selectedUI;
|
||||
|
||||
protected bool selected = false;
|
||||
protected HealthComponent healthComp;
|
||||
protected Outline outline;
|
||||
|
||||
protected Camera mainCam;
|
||||
|
||||
// Getters
|
||||
public virtual void TowerSelected(bool selected)
|
||||
{
|
||||
this.selected = selected;
|
||||
|
||||
outline.enabled = selected;
|
||||
selectedUI.SetActive(selected);
|
||||
}
|
||||
|
||||
protected virtual void Awake()
|
||||
|
@ -22,6 +28,8 @@ public abstract class Tower : MonoBehaviour
|
|||
outline = GetComponent<Outline>();
|
||||
Assert.IsNotNull(healthComp);
|
||||
Assert.IsNotNull(outline);
|
||||
|
||||
mainCam = Camera.main;
|
||||
}
|
||||
|
||||
protected virtual void Start()
|
||||
|
@ -34,6 +42,7 @@ public abstract class Tower : MonoBehaviour
|
|||
|
||||
protected virtual void Update()
|
||||
{
|
||||
selectedUI.transform.LookAt(mainCam.transform.position);
|
||||
}
|
||||
|
||||
protected virtual void FixedUpdate()
|
||||
|
|
|
@ -81,9 +81,13 @@ public class EditableArc : MonoBehaviour
|
|||
arcTangent.x *= -1f;
|
||||
|
||||
Debug.DrawRay(knob.transform.position, arcTangent3D, Color.yellow, 5f);
|
||||
Vector3 screenRay = Camera.main.ScreenPointToRay(Input.mousePosition).direction;
|
||||
Vector3 barreltToAim = Quaternion.AngleAxis(Value.Value, normal) * tangent;
|
||||
float dot = Vector3.Dot(transform.forward, Camera.main.transform.forward) * -1f;
|
||||
|
||||
float sign = orientation == ArcOrientation.HORIZONTAL ? 1f : -1f;
|
||||
float delta = Vector2.Dot(arcTangent, mouseMovement) * knobSensitiviy * sign;
|
||||
mouseMovement.y *= sign * Mathf.Sin(dot);
|
||||
float delta = Vector2.Dot(arcTangent, mouseMovement) * knobSensitiviy * Mathf.Sign(dot);
|
||||
|
||||
float newAngle = ClampAngle(Value.Value + delta, rotationMinMax.x, rotationMinMax.y);
|
||||
Value.Value = newAngle;
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class HealthBar : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Image healthBar;
|
||||
|
||||
[SerializeField]
|
||||
private HealthComponent attachHealth;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
attachHealth.OnHealthChange.AddListener(UpdateBar);
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
UpdateBar(0f, attachHealth.currentHealth); // initial check
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
attachHealth.OnHealthChange.RemoveListener(UpdateBar);
|
||||
}
|
||||
|
||||
private void UpdateBar(float prev, float curr)
|
||||
{
|
||||
float percent = curr / attachHealth.StartHealth;
|
||||
healthBar.fillAmount = percent;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e4732ff957835e7cfb6d8aa387c9a3fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -10,6 +10,7 @@ public class HealthComponent : MonoBehaviour
|
|||
|
||||
public static event Action<Vector3, float> OnHealthChangeAtPos;
|
||||
|
||||
public float StartHealth => startHealth;
|
||||
public UnityEvent OnHealthZero;
|
||||
public UnityEvent<float, float> OnHealthChange;
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
|
@ -0,0 +1,127 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 17c276e38a63bb550a2ea61a38e02dbb
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
|
@ -0,0 +1,127 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e065f0dd3e974200e9cee2ec8fe28f67
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue