Skip to content

Commit

Permalink
Merge pull request #43 from alithegreat74/Impact-Sounds
Browse files Browse the repository at this point in the history
Sound Effects For different impacts
  • Loading branch information
Armour authored Dec 30, 2024
2 parents d8fa611 + ed5c703 commit e365f89
Show file tree
Hide file tree
Showing 23 changed files with 144 additions and 0 deletions.
Binary file added Assets/Audio/Dirt Impact.mp3
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Dirt Impact.mp3.meta

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

Binary file added Assets/Audio/Glass Impact.mp3
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Glass Impact.mp3.meta

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

Binary file added Assets/Audio/Metal Impact.mp3
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Metal Impact.mp3.meta

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

Binary file added Assets/Audio/Water Impact.mp3
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Water Impact.mp3.meta

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

Binary file added Assets/Audio/Wood Impact.mp3
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Wood Impact.mp3.meta

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

Binary file modified Assets/Models/BulletImpacts/impactMetal.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/PolicemanController.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/RobotXController.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/RobotYController.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactBrick.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactConcrete.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactDirt.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactGlass.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactMetal.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactWater.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Resources/impactWood.prefab
Binary file not shown.
18 changes: 18 additions & 0 deletions Assets/Scripts/ImpactAudioPlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using UnityEngine;


[RequireComponent(typeof(AudioSource))]
public class ImpactAudioPlayer : MonoBehaviour
{
private AudioSource audioSource;
private void OnEnable()
{
audioSource = GetComponent<AudioSource>();
audioSource?.Play();
Debug.Log($"Playing with {audioSource}");
}
private void OnDisable()
{
audioSource?.Stop();
}
}
11 changes: 11 additions & 0 deletions Assets/Scripts/ImpactAudioPlayer.cs.meta

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

0 comments on commit e365f89

Please sign in to comment.