首页 > 编程知识 正文

unity中的常用类,unity帧同步

时间:2023-05-06 11:30:33 阅读:171154 作者:2713

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 );

//}

}

}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。