private int count;
public void Exit_Game()//点击右上角六次退出程序
{
count++;
if (count >= 6)
{
Debug.Log("Exit");
Application.Quit();
}
if (count > 0)
{
DOTween.To(v => { }, 0, 0, 5f).onComplete += () =>
{
count--;
};
}
}
unity点击右上角空白按钮多次退出程序
于 2022-08-05 09:35:15 首次发布