예제 #1
0
 /// <summary>
 /// Stops the speaking sound.
 /// </summary>
 public static void StopVoice()
 {
     if (instance != null)
     {
         if (instance.voiceRoutine != null)
         {
             instance.StopCoroutine(instance.voiceRoutine);
         }
     }
     else
     {
         Debug.LogError("There is no Voices prefab in the scene!");
     }
 }