📜  unity 等待几秒钟 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.700000             🧑  作者: Mango

代码示例4
public void GameOver()
        {
            //Set levelText to display number of levels passed and game over message
            levelText.text = "After " + level + " months, you starved.";

            new WaitForSeconds(6);

            Application.Quit();


        }