Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [SerializeField] int coinsToWin;
- void IUpdating.OnUpdate()
- {
- if (game.coinsCollected >= coinsToWin)
- {
- Bootstrap.ChangeGameState(EGamestate.Victory);
- player.level++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement