반응형
- 코드 작성
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniRx;
public class CoroutionUniRX : MonoBehaviour
{
private void Start()
{
Observable.FromCoroutine(ExampleCoroution, false)
.Subscribe(_ => Debug.Log("Exit"));
}
IEnumerator ExampleCoroution()
{
yield return new WaitForSeconds(1);
Debug.Log("Coroution Exit");
}
}
참고할만한 글
반응형