任意の時間(秒)待機したい場合は、WaitForSecondsが便利です。
[C#]
※WaitForSecondsは、Updateメソッド内では使用できません。
[C#]
private IEnumerator GameOver() { print("Game Over!!"); // 2秒間待機 yield return new WaitForSeconds(2); Application.LoadLevel("Title"); }
※WaitForSecondsは、Updateメソッド内では使用できません。