Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Save Script and use it causes Errors

$
0
0
chosenBombType = GameObject.FindWithTag("Player").GetComponent().GetBombType(); hScript = GameObject.FindGameObjectWithTag("Player").GetComponent(); somethimes i get errors with this 2 lines of code. Sometimes its works and than when i chance something in the scripts nothing todo with this lines it get an error. I dont understand why i cant save the script of an gameobject and use it after that?

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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