Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System;
- using UniRx;
- public class TimerView : MonoBehaviour
- {
- [SerializeField] private TimeCounter timeCounter;
- void Start()
- {
- //eventTimer 의 스트림을 구독한다.
- timeCounter.eventTimer.Subscribe(x =>
- {
- Debug.Log(x.ToString()); //TimerClass 의 Coroutine 내 time 값을 출력
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement