IEnumerator UVZero() {
float x = float.Parse(objs2[0].GetComponent<text>().text);
x += Time.deltaTime;
objs2[0].GetComponent<text>().text = float.Parse(x.ToString("0.0")).ToString();
yield return null;
}
用了协程 但是数字每次增加不是0.1f</text></text>

unity如何长按鼠标左键,实现数字动态增加,每次增加0.1;松开鼠标左键,数字停止变化呢
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-