C#C
C#3y ago
Hutsakeee

❔ Setmax coins to complete level C#

Hello 👋

This code i have added into my Playermovement script:
Code: if (other.gameObject.tag == "Greenplanet" && ScoreManager.instance.score >= maxCoinsValue)
Issue: ScoreManager it tell The name 'ScoreManager' does not exist in the current context.
Solution? Players must complete the amount of coins to complete the level. What is the easy way to use after: if (other.gameObject.tag == "Greenplanet" && ???
to set the max coins. Is just only this line that need to be fix. I have ScoreManager etc but not in PlayerMovement script. How to add it?

Thanks for your help.
appiconninja.png
Was this page helpful?