Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using UnityEngine;
  2. using System;
  3. using UniRx;
  4.  
  5. public class TimerView : MonoBehaviour
  6. {
  7. [SerializeField] private TimeCounter timeCounter;
  8.  
  9. void Start()
  10. {
  11. //eventTimer 의 스트림을 구독한다.
  12. timeCounter.eventTimer.Subscribe(x =>
  13. {
  14. Debug.Log(x.ToString()); //TimerClass 의 Coroutine 내 time 값을 출력
  15. });
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement