UniRxSimpleGame
UniRxSimpleGame copied to clipboard
[Bug, Code Update] Game.cs errors with Unity 2019.3 and UniRx 7.1.0
I tried to open the example game in Unity 2019.3, but Unity showed some errors, related to this repo's included version of UniRx.
So, I updated the UniRx's Scripts folder to the latest version (UniRx 7.1.0), and that fixed most errors. But after updating UniRx, there were still some errors in Game.cs.
To solve the errors, I just had to change the following line of code:
Line 14
private ReactiveProperty<int> scoreDelayed, highscore;
to
private IReadOnlyReactiveProperty<int> scoreDelayed, highscore;
And I had to comment Line 106
scoreDelayed.SetValueAndForceNotify(0); // Force notify so that delayed score updates instantly
Then, the example worked correctly in Unity 2019.3.