public void Execute() { if (!animator.GetCurrentAnimatorStateInfo(0).IsName("Enemy1_fall") && !animator.GetCurrentAnimatorStateInfo(0).IsName("Enemy1_damage")) { if (enemy.ifELeft()) { animator.SetFloat("Velocity", 0); animator.SetBool("isblastanim", true); enemy.StartCoroutine(enemy.blast()); } } enemy.ChangeState(new IIdeal3State()); }