Hi
i have this script that i cant get to the footsteps var with set property
using UnityEngine;
using System.Collections;
public class SoundEffectController : MonoBehaviour {
public AudioSource footAudioSource;
public AudioClip[] footsteps;
void OnFootStrike () {
CharacterController cc = GetComponent<CharacterController>();
float volume = Mathf.Clamp01(0.1f + cc.velocity.magnitude);
footAudioSource.PlayOneShot(footsteps[Random.Range(0, footsteps.Length)], volume);
}
}