Hi ,I am not pro at game dev though its my second project. The hurdle I’ve came to is I am trying to make a simple coin collecting first person controller game so what i want is to load another scene on my desired number of score/coins collected.
After my lots of research i am still unable to resolve this problem, kindly if anyone knows the solution help me. I may not be able write your suggestions in codes (coz I don’t know how to code properly) so kindly provide me the script I need to use.
The help means alot to me ,thanks in advance
After lots of research (it would be the first google result):
Check if the amount of score/coins is greater than the required value, if yes:
SceneManager.LoadScene(int buildIndex);
You can look up the build index in the build menu at the top. And remember to add
using UnityEngine.SceneManagement;
There’s this magic line of code that you can add into right about any script and it will solve all of your problems.
Application.OpenURL("https://unity3d.com/learn/tutorials/s/scripting");
First search it on google then talk about it, well please guide me how can i check if the amount of score is greater than the required value I tried >= and > none is working please rely me with the complete code. Thanks alot
I’m even so kind that I leave a link to C# tutorials here: Anzeigen von Befehlszeilenargumenten - C# | Microsoft Learn
Seriously dude, I don’t wanna be rude but if you don’t even know such things, uninstall Unity right now and come back again after you learned the basics.
Alright man still thanks for not helping ,I’ll try to learn it from there. The reason I asked here is cause i was unable to figure it out ,if you know please tell otherwise dont bother please.Obviously i’ve tried my best to do before asking already.