定义协同程序:
IEnumerator test()
{
Debug.log("test 1");
yeild return WaitForSecond(3.0f);
Debug.log("test 2");
}
开始协同程序:
void lalalalala()
{
StartCoroutine(test());
}
2024-02-14 22:33:22
定义协同程序:
IEnumerator test()
{
Debug.log("test 1");
yeild return WaitForSecond(3.0f);
Debug.log("test 2");
}
开始协同程序:
void lalalalala()
{
StartCoroutine(test());
}