Hello! Im new to unity and im trying to make a high score script. But i don't know how to transfer the score to another script. In the first screenshot i want to transfer the value of score to another script second image 1.https://gyazo.com/d54d7721198228f6bfdf629bfed77d82 2.https://gyazo.com/c4b5740a691af264924222de2cd2d18f
Unity has some pretty good video tutorials. I'd recommend going through some of them to get a handle on the basics like this: https://unity3d.com/learn/tutorials To your specific question, one simple approach to start with is to put a reference to your "Score" script in your "HighScore" class, and assign the reference in the inspector. Then your HighScore class will have access to the Score class. Also, watch out for typos on class/script names. You have "HighSCore" as your class name. If you fix that in the code, make sure the file name is also consistent, or you'll run into problems trying to add the component in Unity.