计时功能在日常开发中会常常用到,实现方式也有比较多的方式。本文列举其中一种比较简单快捷的实现方法。

public Text timerTxt;
float mTimer;
int mSec, mMinute, mHour;
void Update ()
{
mTimer += Time.deltaTime;
mSec
计时功能在日常开发中会常常用到,实现方式也有比较多的方式。本文列举其中一种比较简单快捷的实现方法。

public Text timerTxt;
float mTimer;
int mSec, mMinute, mHour;
void Update ()
{
mTimer += Time.deltaTime;
mSec
3813

被折叠的 条评论
为什么被折叠?