Quantcast
Channel: Answers by "Peter G"
Viewing all articles
Browse latest Browse all 90

Answer by Peter G

$
0
0
I don't really use `boo`, but if it's much like C# or js, then you should be able to take out the cast and then it will probably be okay. class scriptEnemy(MonoBehaviour): public tr as Transform = null def Update(): if tr: Instantiate(tr, transform.position, transform.rotation) Right now the compiler is trying to figure out why you want to treat it as a `Transform` if you aren't actually going to do anything with it.

Viewing all articles
Browse latest Browse all 90

Trending Articles



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