My Enemy only attack once and stop

Re-watch the tutorial multiple time and redo the scripts multiple times but still the same
It look like the script doesn’t pass through or something I don’t know
here my scripts

Do they stop moving, or attacking? Add some Debug.Log and check that the code is going where it’s expected to be going.

Yea it stop moving after first attack. I add some Debug and I don’t know why but inside this GetNormalizedTime was not being call

Does EnemyState override GetNormailzedTime() perhaps?

I don’t know but here my script

OK, all looks fine. Does your animations have the ‘Attack’ tag?

Ohhh no wonder why, it because my animation doesn’t have that tag. Thank you!
who couldn’t thought I forgot that tag haha silly me

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms