I have gone threw my code a couple of times and compared it to example code but I can’t find why the shooting action is repeating until enemy Unit is dead.
Anyone run into this problem?
I have gone threw my code a couple of times and compared it to example code but I can’t find why the shooting action is repeating until enemy Unit is dead.
Anyone run into this problem?
Your shoot action really wants to make sure it’s getting the job done!
Paste in your ShootAction.cs and we’ll take a look.
Which part is repeating? The entire shoot action? Like it does the aim, wait, fire, stop; then goes back to aim, wait, etc?
Or does it get stuck in the fire state and constantly fires the projectiles?
Add a Debug.Log to see if the states are switching correctly
Okay, got it fixed. Had an issue with Unity crashing and it looks like I missed a step when redoing the bit that I lost.
Problem was resolved when I re-created link from UnitWorldUI.cs [SerializedField] Image healthbarFill.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.