using UnityEngine;
using System.Collections;
publicclasstesttimescale : mono behaviour {
//Use this for initialization
void Start () }
开始计数(xx ) );
}
//Update is called once per frame
void更新(}
if(input.getkeydown(keycode.q ) )
Time.timeScale=0;
}
if(input.getkeydown(keycode.z ) )
Time.timeScale=1;
}
}
私有ienumerator xx (
//debug.log('begin---- ';
//while(true ) {
//说明:是:有影响。 否:没有影响。 且恢复Time.timeScale后,将继续执行(
//yield return null; //no
//yieldreturnnewwaitforseconds (5.0f;//是
//yieldreturnnewwaitforfixedupdate (;//是
//yieldreturnnewwaitforendofframe (; //no
//yield return 2; //no
//debug.log (-------- ' time.time scale );
//no
//wwwwww=newwww () www.Baidu.com);
//yield return www;
//debug.log (www.bytes.length '---' time.time scale );
//}
}
}