public void PlaySwimIdle()
    {
        if (swimIdle != null)
        {
            if (currentConSource == CurrentContinuousSource.None || currentConSource == CurrentContinuousSource.Source2)
            {
                if (!continuousSource1.isPlaying || continuousSource1.clip != swimIdle)
                {
                    continuousSource1.clip        = swimIdle;
                    currentContinuousSourceVolume = swimIdleVolume;
                    continuousSource1.Play();
                }

                currentConSource = CurrentContinuousSource.Source1;
            }
            else if (currentConSource == CurrentContinuousSource.Source1)
            {
                if (!continuousSource2.isPlaying || continuousSource2.clip != swimIdle)
                {
                    continuousSource2.clip        = swimIdle;
                    currentContinuousSourceVolume = swimIdleVolume;
                    continuousSource2.Play();
                }

                currentConSource = CurrentContinuousSource.Source2;
            }
        }
    }
 public void StopSwim()
 {
     if (currentConSource != CurrentContinuousSource.None)
     {
         if (currentConSource == CurrentContinuousSource.Source1)
         {
             if (continuousSource1.clip == swimFreestyle || continuousSource1.clip == swimIdle)
             {
                 currentConSource = CurrentContinuousSource.None;
             }
         }
         else if (currentConSource == CurrentContinuousSource.Source2)
         {
             if (continuousSource2.clip == swimFreestyle || continuousSource2.clip == swimIdle)
             {
                 currentConSource = CurrentContinuousSource.None;
             }
         }
     }
 }
 public void PlayWallSlide()
 {
     if (wallSlide != null)
     {
         if (currentConSource == CurrentContinuousSource.None || currentConSource == CurrentContinuousSource.Source2)
         {
             continuousSource1.clip        = wallSlide;
             currentContinuousSourceVolume = wallSlideVolume;
             continuousSource1.Play();
             currentConSource = CurrentContinuousSource.Source1;
         }
         else if (currentConSource == CurrentContinuousSource.Source1)
         {
             continuousSource2.clip        = wallSlide;
             currentContinuousSourceVolume = wallSlideVolume;
             continuousSource2.Play();
             currentConSource = CurrentContinuousSource.Source2;
         }
     }
 }
 private void StopWallSlide()
 {
     if (wallSlide != null && currentConSource != CurrentContinuousSource.None)
     {
         if (currentConSource == CurrentContinuousSource.Source1)
         {
             if (continuousSource1.clip == wallSlide && continuousSource1.isPlaying)
             {
                 continuousSource1.Stop();
                 currentConSource = CurrentContinuousSource.None;
             }
         }
         else if (currentConSource == CurrentContinuousSource.Source2)
         {
             if (continuousSource2.clip == wallSlide && continuousSource2.isPlaying)
             {
                 continuousSource2.Stop();
                 currentConSource = CurrentContinuousSource.None;
             }
         }
     }
 }