public FootstepAudioPlayer CreateRobotFootstep(Vector3 position, AudioClip clip, float volume) { FootstepAudioPlayer robotFootstep = GetRobotFootstep(); robotFootstep.transform.position = position; robotFootstep.Play(clip, volume); return(robotFootstep); }
public FootstepAudioPlayer CreatePlayerFootstep(Vector3 position, AudioClip clip, float volume) { FootstepAudioPlayer playerFootstep = GetPlayerFootstep(); playerFootstep.transform.position = position; playerFootstep.Play(clip, volume); return(playerFootstep); }