📜  暂停统一游戏 - C# 代码示例

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

代码示例3
void PauseGame ()
    {
        Time.timeScale = 0f;
        AudioListener.pause = true;
    }

void ResumeGame ()
    {
        Time.timeScale = 1;
        AudioListener.pause = false;
    }Copy