public void StartFixing() { if (soundLoopMode != SoundLoopMode.Fixing) { AudioClip sound = soundRef.botWeldingSounds[Random.Range(0, soundRef.botWeldingSounds.Length)]; movementAudioSource.Stop(); movementAudioSource.clip = sound; movementAudioSource.Play(); soundLoopMode = SoundLoopMode.Fixing; } }
public void StopLoop() { movementAudioSource.Stop(); soundLoopMode = SoundLoopMode.Nothing; }