::We’ll need to come up with a different way to create this mechanic, but the simplest solution is going through all the “Boss_” scripts for their attacks and call the end of their function/methods if they touch the wall rather than set ResetAllAttacks()
. This is because ResetAllAttacks()
doesn’t stop current attacks but rather allows for another attack to be called after another one has ended.
So if I want to stop my dive attack, I’ll need to do the same compartag code in the Boss_Dive.cs, then I’ll have to tell it to set the current animation and paramaeter to false, turn off the diving collider, call resetattacks. etc.
As for the Slash() animation, i’ll similarly have to look into it for a better solution. However, for now, I will only be able to recommend the same suggestion.