Entities SFX

This commit is contained in:
Yann Dupont 01 2022-04-03 17:46:13 -04:00
parent c0a25d4b41
commit b6d889a18a
12 changed files with 978 additions and 46 deletions

View File

@ -0,0 +1,129 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6915619910278317271
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 70347360213241984}
- component: {fileID: 6767790137851257392}
m_Layer: 0
m_Name: Audio Source 3D
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &70347360213241984
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6915619910278317271}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &6767790137851257392
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6915619910278317271}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8929857cf558a9b40a30682dc94048ad
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -113,6 +113,10 @@ PrefabInstance:
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 161084746864990857, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 197677485360569561, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: m_Name
value: Big Knight Variant
@ -161,10 +165,38 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.size
value: 5
objectReference: {fileID: 0}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: <renderer>k__BackingField
value:
objectReference: {fileID: 1594628713}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.data[0]
value:
objectReference: {fileID: 8300000, guid: 25f02fc287c10214b860205c26804cc9, type: 3}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.data[1]
value:
objectReference: {fileID: 8300000, guid: 572a5b8d3fd2fff40aeabc2491982dff, type: 3}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.data[2]
value:
objectReference: {fileID: 8300000, guid: fbda32094e1896a4b88d9e5c31cd0189, type: 3}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.data[3]
value:
objectReference: {fileID: 8300000, guid: 605f6c766a7357841a25089d2ce2c5cb, type: 3}
- target: {fileID: 197677485360569566, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: attackSounds.Array.data[4]
value:
objectReference: {fileID: 8300000, guid: ff52088c39c2bb840b1a0f1902b594ee, type: 3}
- target: {fileID: 218553800040352715, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 1378753993384522801, guid: b25a487d193f24049b6a791adf592b2e, type: 3}
propertyPath: m_AnchorMax.x
value: 0

View File

@ -34,6 +34,7 @@ Transform:
- {fileID: 3324925360650734151}
- {fileID: 1378753994466832711}
- {fileID: 161084746864990857}
- {fileID: 218553800040352715}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -66,6 +67,26 @@ MonoBehaviour:
deadColor: {r: 0.7075472, g: 0.030037368, b: 0.030037368, a: 1}
emptyColor: {r: 0.5660378, g: 0.5660378, b: 0.5660378, a: 0.4117647}
animator: {fileID: 0}
soundManager: {fileID: 0}
hurtSource: {fileID: 4476512741303027505}
deathSource: {fileID: 7471870309671043834}
hurtSounds:
- {fileID: 8300000, guid: 4890fcc7dd0e7e94b91ceaed0aa47ae2, type: 3}
- {fileID: 8300000, guid: 8ab23931c850bae4fbcdd039393ee80c, type: 3}
- {fileID: 8300000, guid: 88ba18cf16f321644b92eb498973ee73, type: 3}
deathSounds:
- {fileID: 8300000, guid: 2f6e87c7054deeb4bab220726024a3c2, type: 3}
- {fileID: 8300000, guid: 4c1b7822a9c6ab24082bd55a58debb7d, type: 3}
- {fileID: 8300000, guid: 715fcd41989bba641a5a061bde42fe34, type: 3}
- {fileID: 8300000, guid: e746c89d44a613f469f7ae3fa7de7a2a, type: 3}
- {fileID: 8300000, guid: 31ce317393fa8a24bbc2bc8c7a39c56e, type: 3}
attackSource: {fileID: 3273248897583023351}
attackSounds:
- {fileID: 8300000, guid: d7fbefedc07adc94d8bf9b963ac2fe88, type: 3}
- {fileID: 8300000, guid: e6a3a97839444ca499bd432fc87242f8, type: 3}
- {fileID: 8300000, guid: b838acf9c619d694d855fa7248d0dae5, type: 3}
- {fileID: 8300000, guid: d8fd170823304ac4099347ee570b5250, type: 3}
- {fileID: 8300000, guid: 370647846d18d1b4692367dc8783b92e, type: 3}
AIStats: {fileID: 11400000, guid: 9d8a9a664d932d0498d5eca7607eeb53, type: 2}
--- !u!58 &3988163462708087662
CircleCollider2D:
@ -155,6 +176,39 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &3207813502995273367
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 218553800040352715}
m_Layer: 0
m_Name: Audio Sources
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &218553800040352715
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3207813502995273367}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7136566407457748353}
- {fileID: 4225647201354428490}
- {fileID: 8104512644020549191}
m_Father: {fileID: 197677485360569565}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &3772547392739388838
GameObject:
m_ObjectHideFlags: 0
@ -460,3 +514,204 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: aadb67b8f73573a44b31b015f38561ee, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &4205639881512132810
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 218553800040352715}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Death Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &4225647201354428490 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 4205639881512132810}
m_PrefabAsset: {fileID: 0}
--- !u!82 &7471870309671043834 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 4205639881512132810}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7202313375586755841
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 218553800040352715}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Hurt Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &7136566407457748353 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 7202313375586755841}
m_PrefabAsset: {fileID: 0}
--- !u!82 &4476512741303027505 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 7202313375586755841}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &8106742946858280647
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 218553800040352715}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Attack Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &8104512644020549191 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 8106742946858280647}
m_PrefabAsset: {fileID: 0}
--- !u!82 &3273248897583023351 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 8106742946858280647}
m_PrefabAsset: {fileID: 0}

View File

@ -109,6 +109,10 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 160730869004340736, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 2399377275812995968, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: m_RootOrder
value: 0
@ -153,14 +157,34 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2399377275812995974, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: deathSounds.Array.size
value: 3
objectReference: {fileID: 0}
- target: {fileID: 2399377275812995974, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: <renderer>k__BackingField
value:
objectReference: {fileID: 1205254930}
- target: {fileID: 2399377275812995974, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: deathSounds.Array.data[0]
value:
objectReference: {fileID: 8300000, guid: fdfbc11957203494ea7cfefd3e7369ce, type: 3}
- target: {fileID: 2399377275812995974, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: deathSounds.Array.data[1]
value:
objectReference: {fileID: 8300000, guid: 007c30489b91e304caf6e02b395e25e8, type: 3}
- target: {fileID: 2399377275812995974, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: deathSounds.Array.data[2]
value:
objectReference: {fileID: 8300000, guid: 2bfd74251b8800843abb9121b2e543f2, type: 3}
- target: {fileID: 2399377275812995980, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: m_Name
value: Goblin Variant
objectReference: {fileID: 0}
- target: {fileID: 2512608386474415677, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 7325874221449804585, guid: 5f633c05dee3f4b4784f5702b2365f02, type: 3}
propertyPath: m_Enabled
value: 0

View File

@ -198,6 +198,7 @@ Transform:
- {fileID: 3597671410581014117}
- {fileID: 7668921808236339569}
- {fileID: 160730869004340736}
- {fileID: 2512608386474415677}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -230,6 +231,28 @@ MonoBehaviour:
deadColor: {r: 0.7058824, g: 0.03137255, b: 0.03137255, a: 1}
emptyColor: {r: 0.5647059, g: 0.5647059, b: 0.5647059, a: 0.4117647}
animator: {fileID: 0}
soundManager: {fileID: 0}
hurtSource: {fileID: 7648647166057607160}
deathSource: {fileID: 5744665979608288930}
hurtSounds:
- {fileID: 8300000, guid: b7f5aabebd9db1049b699beb5a288634, type: 3}
- {fileID: 8300000, guid: 6a0af73a44f61f3439c4461dcced6f01, type: 3}
- {fileID: 8300000, guid: 25b6106c6c31da04a99caba9aa5c236d, type: 3}
- {fileID: 8300000, guid: f8d5fa55cb6c4d6499d1ac825bf44602, type: 3}
- {fileID: 8300000, guid: 089179694371cd74886fb80c62b1c193, type: 3}
- {fileID: 8300000, guid: 71fc19d27b375cb4598fb329fe96f8c5, type: 3}
- {fileID: 8300000, guid: d9ebde30623a6b547b99c4dac9262e0c, type: 3}
deathSounds:
- {fileID: 8300000, guid: 4f67a2efdd445a04b93766599f91979f, type: 3}
- {fileID: 8300000, guid: c13ecb4d061a35a4cb2ffac5b56ca6b5, type: 3}
- {fileID: 8300000, guid: 302e4d81162b7ec4bbfeb3a4a08ac066, type: 3}
attackSource: {fileID: 5001816468400334319}
attackSounds:
- {fileID: 8300000, guid: d7fbefedc07adc94d8bf9b963ac2fe88, type: 3}
- {fileID: 8300000, guid: e6a3a97839444ca499bd432fc87242f8, type: 3}
- {fileID: 8300000, guid: b838acf9c619d694d855fa7248d0dae5, type: 3}
- {fileID: 8300000, guid: d8fd170823304ac4099347ee570b5250, type: 3}
- {fileID: 8300000, guid: 370647846d18d1b4692367dc8783b92e, type: 3}
AIStats: {fileID: 11400000, guid: 9d8a9a664d932d0498d5eca7607eeb53, type: 2}
thrownFromSafeZone: 0
thrownTargetPosition: {x: 0, y: 0, z: 0}
@ -321,6 +344,240 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &6706667572973450630
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2512608386474415677}
m_Layer: 0
m_Name: Audio Sources
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2512608386474415677
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6706667572973450630}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3976852030601354568}
- {fileID: 1345677495184358418}
- {fileID: 1765389454669961055}
m_Father: {fileID: 2399377275812995968}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1320999451025140882
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2512608386474415677}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Death Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &1345677495184358418 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 1320999451025140882}
m_PrefabAsset: {fileID: 0}
--- !u!82 &5744665979608288930 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 1320999451025140882}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1767100823713040351
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2512608386474415677}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Attack Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &1765389454669961055 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 1767100823713040351}
m_PrefabAsset: {fileID: 0}
--- !u!82 &5001816468400334319 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 1767100823713040351}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4019868761555029448
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2512608386474415677}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Hurt Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &3976852030601354568 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 4019868761555029448}
m_PrefabAsset: {fileID: 0}
--- !u!82 &7648647166057607160 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 4019868761555029448}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4861301622389167767
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -274,6 +274,50 @@ MonoBehaviour:
m_Calls: []
m_LegacyBlendHint: 0
m_ComponentOwner: {fileID: 3977887685390540695}
--- !u!1 &6708085743686785862
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3240649040312459155}
- component: {fileID: 1884319524323261887}
m_Layer: 0
m_Name: SoundManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3240649040312459155
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6708085743686785862}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 8365024801698166081}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1884319524323261887
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6708085743686785862}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b2771a5310833e64798c08aa5371e48b, type: 3}
m_Name:
m_EditorClassIdentifier:
audioMixer: {fileID: 24100000, guid: 06ed4a4573fabf84580596dba3e0c116, type: 2}
--- !u!1 &8365024801038495441
GameObject:
m_ObjectHideFlags: 0
@ -511,6 +555,7 @@ Transform:
- {fileID: 461246139}
- {fileID: 1005651898}
- {fileID: 2678552953295986148}
- {fileID: 3240649040312459155}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -524,7 +569,6 @@ GameObject:
m_Component:
- component: {fileID: 8365024802335227868}
- component: {fileID: 8365024802335227869}
- component: {fileID: 8365024802335227870}
- component: {fileID: 8365024802335227867}
- component: {fileID: 8365024802335227866}
m_Layer: 0
@ -591,14 +635,6 @@ Camera:
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!81 &8365024802335227870
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8365024802335227871}
m_Enabled: 1
--- !u!114 &8365024802335227867
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -16,6 +16,7 @@ GameObject:
- component: {fileID: 1214567908930553477}
- component: {fileID: 945832017}
- component: {fileID: 7270464587938865433}
- component: {fileID: 1762185123217591013}
m_Layer: 0
m_Name: Vampire
m_TagString: Untagged
@ -38,6 +39,7 @@ Transform:
- {fileID: 5561158611004983940}
- {fileID: 8877496746214907228}
- {fileID: 1931588020511749739}
- {fileID: 903222670005920393}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -85,6 +87,14 @@ MonoBehaviour:
deadColor: {r: 1, g: 0, b: 0, a: 1}
emptyColor: {r: 0.25490198, g: 0.25490198, b: 0.25490198, a: 0.7019608}
animator: {fileID: 0}
soundManager: {fileID: 0}
hurtSource: {fileID: 8033357406949758492}
deathSource: {fileID: 2647181308297321688}
hurtSounds:
- {fileID: 8300000, guid: f9d1af15829515644a12a3603c72335e, type: 3}
- {fileID: 8300000, guid: 5a5ca609f427205489f4ce369080e57f, type: 3}
deathSounds:
- {fileID: 8300000, guid: 4e2519f9a65bd484d95111774c762843, type: 3}
playerStats: {fileID: 11400000, guid: 12a626b5a296d934ba078d222ad6ba98, type: 2}
playerMovement: {fileID: 0}
--- !u!114 &1967503440015794769
@ -353,6 +363,46 @@ CapsuleCollider2D:
m_Offset: {x: 0, y: -0.25}
m_Size: {x: 1.25, y: 0.5}
m_Direction: 1
--- !u!81 &1762185123217591013
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1214567908930553593}
m_Enabled: 1
--- !u!1 &1436254125285932875
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 903222670005920393}
m_Layer: 0
m_Name: Audio Sources
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &903222670005920393
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1436254125285932875}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3632678902316393644}
- {fileID: 8766613565529140840}
m_Father: {fileID: 1214567908930553594}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &5124059627794595469
GameObject:
m_ObjectHideFlags: 0
@ -650,6 +700,140 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1001 &3643467873725871148
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 903222670005920393}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Hurt Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &3632678902316393644 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 3643467873725871148}
m_PrefabAsset: {fileID: 0}
--- !u!82 &8033357406949758492 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 3643467873725871148}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &8741671706484653800
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 903222670005920393}
m_Modifications:
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6915619910278317271, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
propertyPath: m_Name
value: Death Source
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
--- !u!4 &8766613565529140840 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 70347360213241984, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 8741671706484653800}
m_PrefabAsset: {fileID: 0}
--- !u!82 &2647181308297321688 stripped
AudioSource:
m_CorrespondingSourceObject: {fileID: 6767790137851257392, guid: 8929857cf558a9b40a30682dc94048ad, type: 3}
m_PrefabInstance: {fileID: 8741671706484653800}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &9176030194975883919
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -4,6 +4,11 @@ using System.Collections;
using UnityEngine.Serialization;
public class AIEntity : Entity {
[SerializeField] protected AudioSource attackSource;
[SerializeField] protected AudioClip[] attackSounds;
[FormerlySerializedAs("stats")]
[SerializeField]
public AIStats AIStats = null!;
@ -72,12 +77,12 @@ public class AIEntity : Entity {
return enemies.HasFlag(other.entityType) && other.IsAlive();
}
override public bool TakeDamage(float amount, Entity other) {
override public bool TakeDamage(float amount, Entity other, bool sound=true) {
//TODO Should we warn if target is null here?
if (target != null && target.GetComponent<VampireEntity>() is { })
target = other.transform;
return base.TakeDamage(amount, other);
return base.TakeDamage(amount, other, sound);
}
#region Flip
@ -253,8 +258,6 @@ public class AIEntity : Entity {
}
public override void EnterState() {
entity.soundManager.PlaySound(entity.attackSource, entity.attackSounds, randomPitch: true, createTempSourceIfBusy: true);
entity.animator.Play("Attack");
}
public override BaseState? UpdateState() {
@ -281,6 +284,8 @@ public class AIEntity : Entity {
private BaseState? Attack() {
Entity targetEntity = entity.target.GetComponent<Entity>();
if (targetEntity != null) {
entity.animator.Play("Attack");
entity.soundManager.PlaySound(entity.attackSource, entity.attackSounds, randomPitch: true, createTempSourceIfBusy: true);
targetEntity.TakeDamage(entity.attackDmg, entity);
bool isTargetAlive = targetEntity.IsAlive();
if (!isTargetAlive) {

View File

@ -7,22 +7,23 @@ using UnityEngine;
[RequireComponent(typeof(Rigidbody2D))]
public class Entity : MonoBehaviour {
[Flags]
public enum EntityFlag {
Vampire = 0,
Monster = 1,
Gladiator = 2,
}
[Flags]
public enum EntityFlag {
Vampire = 0,
Monster = 1,
Gladiator = 2,
}
public Arena arena = null!;
[SerializeField] [Required]
public Arena arena = null!;
[SerializeField]
[Required]
public GameFlowManager gameFlowManager = null!;
[field: SerializeField] public float Health { get; private set; }
[Min(10f)]
protected float initialHealth;
[SerializeField] [Required] protected HealthBar healthBar;
[SerializeField][Required] protected HealthBar healthBar;
bool isAlive = true;
public int bloodTokens = 1;
[field: SerializeField] public float movementSpeed { get; private set; }
@ -37,7 +38,7 @@ public class Entity : MonoBehaviour {
public Vector3 direction { get; set; }
public Rigidbody2D rb { get; private set; } = null!;
public new Collider2D collider { get; private set; } = null!;
[field: SerializeField] [field: Required]public new SpriteRenderer renderer { get; private set; }
[field: SerializeField][field: Required] public new SpriteRenderer renderer { get; private set; }
[SerializeField] GameObject halo;
[SerializeField] protected Color deadColor = Color.red;
[SerializeField] protected Color emptyColor = Color.grey;
@ -46,12 +47,10 @@ public class Entity : MonoBehaviour {
[HideInInspector] public SoundManager soundManager;
[SerializeField] protected AudioSource hurtSource;
[SerializeField] protected AudioSource deathSource;
[SerializeField] protected AudioSource attackSource;
[SerializeField] protected AudioClip[] hurtSounds;
[SerializeField] protected AudioClip[] deathSounds;
[SerializeField] protected AudioClip[] attackSounds;
virtual protected void Awake(){
virtual protected void Awake() {
rb = GetComponent<Rigidbody2D>();
collider = GetComponent<Collider2D>();
animator = GetComponentInChildren<Animator>();
@ -59,9 +58,9 @@ public class Entity : MonoBehaviour {
}
protected virtual void Start() {
if (direction == Vector3.zero && !(this is VampireEntity))
Debug.LogWarning("Entity had null direction.");
gameFlowManager.stateChanged += OnGameFlowStateChanged;
if (direction == Vector3.zero && !(this is VampireEntity))
Debug.LogWarning("Entity had null direction.");
gameFlowManager.stateChanged += OnGameFlowStateChanged;
attackTimer = attackCooldown;
initialHealth = Health;
@ -72,7 +71,7 @@ public class Entity : MonoBehaviour {
protected virtual void Update() { }
protected virtual void FixedUpdate() {}
protected virtual void FixedUpdate() { }
protected void OnDestroy() => gameFlowManager.stateChanged -= OnGameFlowStateChanged;
@ -94,7 +93,7 @@ public class Entity : MonoBehaviour {
}
//Apply damage to the entity, returns true if it is still alive
public virtual bool TakeDamage(float amount, Entity other) {
public virtual bool TakeDamage(float amount, Entity other, bool sound = true) {
Health -= amount;
healthBar.SetHealthFraction(Health / initialHealth);
@ -103,7 +102,9 @@ public class Entity : MonoBehaviour {
return false;
}
soundManager.PlaySound(hurtSource, hurtSounds, randomPitch:true, createTempSourceIfBusy:true);
if (sound) {
soundManager.PlaySound(hurtSource, hurtSounds, randomPitch: true, createTempSourceIfBusy: true);
}
return true;
}
@ -111,14 +112,14 @@ public class Entity : MonoBehaviour {
Health += amount;
healthBar.SetHealthFraction(Health / initialHealth);
if(Health > initialHealth) {
if (Health > initialHealth) {
Health = initialHealth;
}
}
protected bool IsInAttackRange() {
float distance = Vector2.Distance(transform.position, target.position);
return distance <= attackRange;
return distance <= attackRange;
}
protected bool IsLookingAtTarget() {
@ -133,33 +134,33 @@ public class Entity : MonoBehaviour {
protected virtual void OnDied() {
soundManager.PlaySound(deathSource, deathSounds, randomPitch: true, createTempSourceIfBusy: true);
isAlive = false;
if(!(collider is null)){
if (!(collider is null)) {
collider.isTrigger = true;
}
if(!(rb is null)){
if (!(rb is null)) {
rb.isKinematic = true;
rb.velocity = Vector2.zero;
}
healthBar.gameObject.SetActive(false);
if(bloodTokens > 0){
if (bloodTokens > 0) {
renderer.color = deadColor;
renderer.sortingOrder = -1;
}else{
} else {
renderer.color = emptyColor;
renderer.sortingOrder = -2;
}
}
protected virtual void OnEmpty(){
protected virtual void OnEmpty() {
renderer.color = emptyColor;
renderer.sortingOrder = -2;
}
public void OnSuck(bool val){
public void OnSuck(bool val) {
beingSucked = val;
}
public bool IsBeingSucked(){
public bool IsBeingSucked() {
return beingSucked;
}
public void EnableHalo() {
@ -171,7 +172,7 @@ public class Entity : MonoBehaviour {
}
void OnGameFlowStateChanged(BaseState newState) {
if (gameFlowManager.pauseLevel >= GameFlowManager.PauseLevel.NothingMoves)
rb.velocity = Vector2.zero;
if (gameFlowManager.pauseLevel >= GameFlowManager.PauseLevel.NothingMoves)
rb.velocity = Vector2.zero;
}
}

View File

@ -59,9 +59,11 @@ public class SoundManager : MonoBehaviour {
}
IEnumerator CreateTempSource(AudioSource refSource, float delay=0f) {
AudioSource newSource = gameObject.AddComponent<AudioSource>();
AudioSource newSource = refSource.gameObject.AddComponent<AudioSource>();
newSource.volume = refSource.volume;
newSource.clip = refSource.clip;
newSource.spatialize = refSource.spatialize;
newSource.spatialBlend = refSource.spatialBlend;
PlaySound(newSource, delay:delay);

View File

@ -24,7 +24,7 @@ public class VampireEntity : Entity {
base.Update();
if (gameFlowManager.CanDoAction)
TakeDamage(playerStats.bloodLossRate * Time.deltaTime, this);
TakeDamage(playerStats.bloodLossRate * Time.deltaTime, this, sound:false);
}
// public override void TakeDamage(float amount) {