📜  waitforseconds unity - C# 代码示例

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

代码示例2
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();


        }