Unity中Coroutine与UniRx互操作性应用.pdfVIP

  • 1
  • 0
  • 约2.34千字
  • 约 4页
  • 2026-05-14 发布于北京
  • 举报

5.Coroutine的操作

UniRx还支持Unity的Coroutine,可以将一个Corou转化为事件源

(Observable)。

publicclassRxCoroutineTest:

MonoBehaviour{IEnumeratorCoroutineA(){yield

returnnewWaitForSeconds(1.0f);Debug.Log(A);}

void

S

t

a

r

t

()

{

O

b

s

e

r

vable.Fr

文档评论(0)

1亿VIP精品文档

相关文档