Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andreiagmu opened this issue Feb 5, 2020 · 0 comments
Open

Comments

@andreiagmu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant