Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

Getting a value from Assigned script

$
0
0

Hello

I need a help. I am developing a game and I am having such a big issue. I have assigned one script on button, This button is upgrade, on click it increments int by one ( i++). But I dont know, how to get a value from that button (int value) because when I want to use Debug.Log (int) the Unity says NullReferenceExpression but this int has value of 3. Help please :)

Thanks to everyone for trying to help


Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>