setTimeout是一个很方便的DELAY处理方法
if (this.startUpDelay > 0)
{
StartCoroutine(DelayedStart());
}
private IEnumerator DelayedStart()
{
yield return new WaitForSeconds(this.startUpDelay);
//Activate();
}
setTimeout是一个很方便的DELAY处理方法
if (this.startUpDelay > 0)
{
StartCoroutine(DelayedStart());
}
private IEnumerator DelayedStart()
{
yield return new WaitForSeconds(this.startUpDelay);
//Activate();
}