Syncronize animation and game logic in turn-based strategy

ok. we’re developing a turn-based strategy and faced the problem. in a certain moment animation should start, hit animation for example, and game must stops. the problem is i cant determine how long animation lasts when using Mecanim. how can i do such thing as stop the game while animation clip is playing?

Sorry for poor english

I would just trigger the animation or use a bool once you need them to play. Also set another bool “IsPlaying” to true in mechanim and once you go back to Idle you set it back to.

So only when that bool is false, do the next step/turn.

public Animator anim;

if(anim.GetBool("IsPlaying") == false)
				//do next step

Something like this.