老师,请问我这段程序为什么输出不符合逻辑呢,我看遍了unityAPI和百度搜索出来的东西,任然不懂
代码------------------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test1 : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine(A());
StartCoroutine(B());
Invoke("C",.3f);
}
IEnumerator A()
{
Debug.Log("AAA" + Time.time);
Debug.Log("AAA" + Time.unscaledTime);
Debug.Log("AAA"+Time.timeScale);
yield return new WaitForSeconds(.1f);
Debug.Log("AAA"+Time.time);
Debug.Log("AAA" + Time.unscaledTime);
}
IEnumerator B()
{
yield return new WaitForSecondsRealtime(.2f);
Debug.Log("BBB"+Time.time);
}
void C()
{
Debug.Log("CCC"+Time.time);
}
}
打印结果-----------------------------------------------------------------------------