Question by
bunnybean · Apr 27, 2017 at 03:03 AM ·
scripting problemscenescene-changechanging
Changing Script Based On Scene
Hi there, I'm a bit new to this and I was curious at if you could change code based on what scene the player is now in. I've finally discovered how to change scenes which is awesome but I wanted to change the amount of coins the player must collect to move on to the next scene. Thanks so much if you can help, Bunny
Comment
Answer by CodeMonkeyCrying · Apr 27, 2017 at 03:15 AM
why don't you make the coin that player must collect adjustable on the inspector so that you can adjust it yourself?
Your answer
![](https://koobas.hobune.stream/wayback/20220612120737im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why is my scene not loading? 2 Answers
Create new scene deleted my scene 0 Answers
How to set SceneView Zoom Distance from script C# 1 Answer