本文整理匯總了C#中AudioManager.PlaySound方法的典型用法代碼示例。如果您正苦於以下問題:C# AudioManager.PlaySound方法的具體用法?C# AudioManager.PlaySound怎麽用?C# AudioManager.PlaySound使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AudioManager
的用法示例。
在下文中一共展示了AudioManager.PlaySound方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Intro
private IEnumerator Intro()
{
am = GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManager>();
am.PlaySound ("Brendon Intro");
StartCoroutine (DrawTextBox("Years ago in the fantastical realm of Valdemar there lived a great hero known as Klug the Annihilator.", 6.7f, LevelController.CharacterType.Brandon));
yield return new WaitForSeconds(6.7f);
StartCoroutine (DrawTextBox("He sought to join the great Elder Thargonian Covenant, also known as the ETC.", 6.5f, LevelController.CharacterType.Brandon));
yield return new WaitForSeconds(6.5f);
StartCoroutine (DrawTextBox("However, this feat required a monumental and treacherous task - to find and kill the one who would dane to betray the great covenant.", 10f, LevelController.CharacterType.Brandon));
yield return new WaitForSeconds(10f);
StartCoroutine (DrawTextBox("Now let us join our champion, the great Annihilator!", 4.8f, LevelController.CharacterType.Brandon));
yield return new WaitForSeconds(4.8f);
if(Input.GetKey(KeyCode.F1))
Application.LoadLevel ("Tutorial");
yield return new WaitForSeconds(3f);
Application.LoadLevel ("Tutorial");
}