예제 #1
0
    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;
        }
    }
예제 #2
0
 public void StopLoop()
 {
     movementAudioSource.Stop();
     soundLoopMode = SoundLoopMode.Nothing;
 }