private void doAnimationType() { Debug.Log("Animation"); _police.GetComponent <Animator>().SetTrigger("Attack"); HasEnded = true; }