计时器
using System.Collections;using System.Collections.Generic;using System.Threading;using UnityEngine;public class Async : MonoBehaviour{// Start is called before the first frame updatevoid Start(){//创建定时器Timer timer = new Timer(TimeOut, null, 5000, 0);}// Update is called once per frameprivate void TimeOut(System.Object state){Debug.Log("sfas");}}
