diff options
| author | marcinzelent <zelent.marcin@gmail.com> | 2019-04-28 12:56:28 +0200 | 
|---|---|---|
| committer | marcinzelent <zelent.marcin@gmail.com> | 2019-04-28 12:56:28 +0200 | 
| commit | 8b1b6a245713f830220dd79cf508f3928a9022bf (patch) | |
| tree | f763933fcc2f62c0db8117c060289452b899767e | |
| parent | 9e3be7171503a43d4f99a03f19741355eb1c214d (diff) | |
Added dragon hit sound effect
| -rw-r--r-- | nGJ2019/Assets/Prefabs/Dragon.prefab | 97 | ||||
| -rw-r--r-- | nGJ2019/Assets/Scripts/DragonMovement.cs | 1 | ||||
| -rw-r--r-- | nGJ2019/Assets/Sounds/hit.mp3 | bin | 0 -> 38660 bytes | |||
| -rw-r--r-- | nGJ2019/Assets/Sounds/hit.mp3.meta | 22 | 
4 files changed, 120 insertions, 0 deletions
| diff --git a/nGJ2019/Assets/Prefabs/Dragon.prefab b/nGJ2019/Assets/Prefabs/Dragon.prefab index 27c9ea5..e198a34 100644 --- a/nGJ2019/Assets/Prefabs/Dragon.prefab +++ b/nGJ2019/Assets/Prefabs/Dragon.prefab @@ -1629,6 +1629,7 @@ GameObject:    - component: {fileID: 6304280658491965943}    - component: {fileID: 6304280658491965942}    - component: {fileID: 6304280658491965940} +  - component: {fileID: 1874766053439381427}    m_Layer: 0    m_Name: Dragon    m_TagString: Untagged @@ -1726,3 +1727,99 @@ MonoBehaviour:    meshRender: {fileID: 4765421907090330142}    showGuides: 1    showMesh: 0 +--- !u!82 &1874766053439381427 +AudioSource: +  m_ObjectHideFlags: 0 +  m_CorrespondingSourceObject: {fileID: 0} +  m_PrefabInstance: {fileID: 0} +  m_PrefabAsset: {fileID: 0} +  m_GameObject: {fileID: 6304280658491965939} +  m_Enabled: 1 +  serializedVersion: 4 +  OutputAudioMixerGroup: {fileID: 0} +  m_audioClip: {fileID: 8300000, guid: a916f122aee794ea0974d3fe960039fb, type: 3} +  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: 0 +      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 diff --git a/nGJ2019/Assets/Scripts/DragonMovement.cs b/nGJ2019/Assets/Scripts/DragonMovement.cs index 9b1971a..850ea2a 100644 --- a/nGJ2019/Assets/Scripts/DragonMovement.cs +++ b/nGJ2019/Assets/Scripts/DragonMovement.cs @@ -292,6 +292,7 @@ public class DragonMovement : MonoBehaviour  	{  		if(hurtCooldown <= 0)  		{ +            GetComponent<AudioSource>().Play();  			healthBar.health--;  			if(healthBar.health == 0)  			{ diff --git a/nGJ2019/Assets/Sounds/hit.mp3 b/nGJ2019/Assets/Sounds/hit.mp3Binary files differ new file mode 100644 index 0000000..8fe3e0e --- /dev/null +++ b/nGJ2019/Assets/Sounds/hit.mp3 diff --git a/nGJ2019/Assets/Sounds/hit.mp3.meta b/nGJ2019/Assets/Sounds/hit.mp3.meta new file mode 100644 index 0000000..0873495 --- /dev/null +++ b/nGJ2019/Assets/Sounds/hit.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: a916f122aee794ea0974d3fe960039fb +AudioImporter: +  externalObjects: {} +  serializedVersion: 6 +  defaultSettings: +    loadType: 0 +    sampleRateSetting: 0 +    sampleRateOverride: 44100 +    compressionFormat: 1 +    quality: 1 +    conversionMode: 0 +  platformSettingOverrides: {} +  forceToMono: 0 +  normalize: 1 +  preloadAudioData: 1 +  loadInBackground: 0 +  ambisonic: 0 +  3D: 1 +  userData:  +  assetBundleName:  +  assetBundleVariant:  |