Add new dialogue system, add sound effects to walk cycle
This commit is contained in:
19
Assets/Scripts/Footsteps.cs
Normal file
19
Assets/Scripts/Footsteps.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam
|
||||
{
|
||||
public class Footsteps : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private AudioClip[] clips;
|
||||
[SerializeField]
|
||||
private AudioSource audioSource;
|
||||
|
||||
private void Step()
|
||||
{
|
||||
var clip = clips.First();
|
||||
audioSource.PlayOneShot(clip);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user