UniRxSimpleGame icon indicating copy to clipboard operation
UniRxSimpleGame copied to clipboard

[Bug, Code Update] Game.cs errors with Unity 2019.3 and UniRx 7.1.0

Open andreiagmu opened this issue 4 years ago • 0 comments

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.

andreiagmu avatar Feb 05 '20 22:02 andreiagmu