Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
a
a
  • Loading branch information
aps16104 committed May 6, 2020
1 parent cadde25 commit 450ba91
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 88 deletions.
4 changes: 2 additions & 2 deletions Platformer/Assets/Enemy2.cs
Expand Up @@ -76,7 +76,7 @@ public class Enemy2 : MonoBehaviour
slider.value = CalculateHealth();

//Hurt Animation
SoundManagerScript.PlaySound("GhostHurt");
SoundManagerScript.PlaySound("WizardHurt");
if (currentHealth <= 0)
{
Instantiate(score, new Vector3(ghost.position.x, ghost.position.y, ghost.position.z), Quaternion.identity);
Expand All @@ -100,7 +100,7 @@ public class Enemy2 : MonoBehaviour
TakeDamage(Shurikendamage);
healthBarUI.SetActive(true);
slider.value = CalculateHealth();
SoundManagerScript.PlaySound("GhostHurt");
SoundManagerScript.PlaySound("WizardHurt");
}

}
Expand Down
Binary file added Platformer/Assets/Resources/WizardHurt.wav
Binary file not shown.
22 changes: 22 additions & 0 deletions Platformer/Assets/Resources/WizardHurt.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Platformer/Assets/Scripts/SoundManagerScript.cs
Expand Up @@ -4,7 +4,7 @@ using UnityEngine;

public class SoundManagerScript : MonoBehaviour
{
public static AudioClip Collectsound, Jumpsound, Swordsound, Diesound, Throwsound, Hurtsound, Heartsound, GhsotHurtSound, Keysound, teleportSound, evilLaughSound, BeeHitSound, KnightHurtSound;
public static AudioClip Collectsound, Jumpsound, Swordsound, Diesound, Throwsound, Hurtsound, Heartsound, GhsotHurtSound, Keysound, teleportSound, evilLaughSound, BeeHitSound, KnightHurtSound,WizardHurtSound;
static AudioSource audioSrc;

public AudioClip otherClip;
Expand All @@ -26,6 +26,7 @@ public class SoundManagerScript : MonoBehaviour
evilLaughSound = Resources.Load<AudioClip>("Evil Laugh");
BeeHitSound = Resources.Load<AudioClip>("BeeHit");
KnightHurtSound = Resources.Load<AudioClip>("KnightHurt");
WizardHurtSound = Resources.Load<AudioClip>("WizardHurt");



Expand Down Expand Up @@ -79,6 +80,9 @@ public class SoundManagerScript : MonoBehaviour
case "KnightHurt":
audioSrc.PlayOneShot(KnightHurtSound);
break;
case "WizardHurt":
audioSrc.PlayOneShot(WizardHurtSound);
break;

}
}
Expand Down
2 changes: 1 addition & 1 deletion Platformer/Assets/_Scenes/Level1.unity
Expand Up @@ -1022880,7 +1022880,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1919620925}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -49, y: -1.19, z: 0}
m_LocalPosition: {x: -49.4, y: -1.22, z: 0}
m_LocalScale: {x: 0.67200005, y: 0.75, z: 1}
m_Children:
- {fileID: 1729492402}
Expand Down
Binary file removed Platformer/Builds/Final/Build/Final.data.unityweb
Binary file not shown.
13 changes: 0 additions & 13 deletions Platformer/Builds/Final/Build/Final.json

This file was deleted.

Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions Platformer/Builds/Final/Build/UnityLoader.js

This file was deleted.

24 changes: 0 additions & 24 deletions Platformer/Builds/Final/TemplateData/UnityProgress.js

This file was deleted.

Binary file removed Platformer/Builds/Final/TemplateData/favicon.ico
Binary file not shown.
Binary file removed Platformer/Builds/Final/TemplateData/fullscreen.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions Platformer/Builds/Final/TemplateData/style.css

This file was deleted.

Binary file removed Platformer/Builds/Final/TemplateData/webgl-logo.png
Binary file not shown.
25 changes: 0 additions & 25 deletions Platformer/Builds/Final/index.html

This file was deleted.

0 comments on commit 450ba91

Please sign in to comment.