- Home /
Cloning Problem Script
Hello :)
There is an issue when I instantiate more than 1 enemy. If there is one, I follows around the main character perfectly. As soon as there are two or more (either instantiated or dragged into the scene), the enemy prefabs go crazy and do not obey my script.
I have some static variables in the enemy script. Could this be a reason why there is a problem?
Thanks in advance! Muhasaresa Capacitors ---||---
Can you post the script in your question? What do these static variables do? Are they used to track information that SHOULD be specific to every enemy instance?
Your answer
Follow this Question
Related Questions
Why does instantiation of clone cause duplicates 1 Answer
Is there anything wrong with this script? It used to work but now it doesn't. 2 Answers
OnTriggerStay Instantiate Problem (just want a single spawn, but there are multiple) 1 Answer
Why are multiple objects being instantiated when I use clone, but not regular instantiation? 1 Answer
Enemy Health Damage 2 Answers