Unity 击中短暂暂停
作者:互联网
void TimeStop()//暂停时间
{
if (IsStopping == true)
{
// stopping = true;
Time.timeScale = 0;
StartCoroutine("Stop");
}
}
IEnumerator Stop()
{
yield return new WaitForSecondsRealtime(stopTime);//击中暂停的多少秒回复正常
Time.timeScale = 1;
}
标签:timeScale,Stop,Unity,Time,暂停,true,击中 来源: https://www.cnblogs.com/wayne1984/p/14148203.html