Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

Getting Int value from script to other script

$
0
0
hi i need to get int value from my script Score.cs to Planemovement.cs. in score.cs its called static int score and it equals to 0 at beginning but raises during the game. if the number is >= 10 it will show an ad when the character dies and the game restarts. i have everything else set up, i just need to know how the Planemovement script can acces that int.

Viewing all articles
Browse latest Browse all 1416

Trending Articles



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