change the variable of enemy to attack
I have a helper robot in my FPS that currently attacks just one particular enemy. I also have an enemy manager that sorts out all possible enemies and priortizes the number 1 target so if multiple enemies are active then the robot will not be confused and go after the #1 priority enemy. That being said......how on earth can I get that info into my helper robot attack script?
currently the target is set to whatever variable I drag into the public slot in the inspector public Transform badGuy; I know how to retrieve the bool that is true in my enemyManager but how to I make use of that bool?
if(enemyManager.Gatlin == true)
badGuy = GatlinGun;
//that is the jist of how I want to somehow take the bool set to true in my enemy manager and have that public variable of badGuy become the new enemy
Hi there - may we have more information about enemy$$anonymous$$anager
?
Your answer
Follow this Question
Related Questions
Text box not displaying a character split string generated at runtime 0 Answers
The bool activates and deactivates but the script in the if statement doesn´t work 1 Answer
C# Update Function Question 2 Answers
1 rigidbody 2 different trigger, tags doesnt have any meaning? 1 Answer
My Turn Based Battle system isn't working,My Turn Based Battle system doesn't work 0 Answers