1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TestDelayText : MonoBehaviour
- {
- float time = 0;
- float delay = 1;
- private void FixedUpdate()
- {
- time += Time.deltaTime;
- if(time>delay)
- {
- time = 0;
- delay = Random.Range(1, 3);
- GameManager.instacne.delayText.text = "增强呈现延迟:" + Random.Range(10, 15).ToString() + "ms";
- }
- //if(PosCommunication.webMM!=0)
- // GameManager.instacne.delayText.text = "当前延迟为:" +( Time.timeSinceLevelLoad- PosCommunication.webMM) +"s";
-
- }
- }
|