Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How can an object add itself to a scripts Array when it's instantiated?

$
0
0
I have a manager script that manages all the enemies in my scene. To do this it has an array called EnemyObject where it manages all the objects at once. How can I have the enemy add itself to the EnemyObject array when its instantiated? Thanks Stealth

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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