Unity 3D and you
Quick tutorial for using UniRx
by Sam Megidov
ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and functional programming.
Now every time score changes,
we update text in the scoreText GameObject.
No need to put that code into an update loop !
score .Scan(int.MinValue, Mathf.Max) .SubscribeToText (highscoreText)
Accumulates amount of added score with a window of 500ms.