Hi there,
First of all i am german so in my Script there is some german language but you can ignore that.
I have a CapsuleCollider2D , which enables after a Key is pressed and a Animation started. How can i
enable the Capsule Collider x seconds after the animation started? I hope you can help me and sorry for my bad english ^^".
//Attack
if (Input.GetKey(KeyCode.Mouse0))
{
// Attack Animation abspielen
playerAnimator.SetBool("Attack 2", true);
//Schwert Collider aktivieren
attackCollider.enabled = true;
} else{
playerAnimator.SetBool("Attack 2", false);
attackCollider.enabled = false;
if (playerAnimator == false);
}
}