void Update() { if (IsAttacking) { sword.PlayAttackAnimation(); } }
// Update is called once per frame void Update() { if (Input.GetKey(attackKey)) { sword.PlayAttackAnimation(); } }
void Update() { if (IsAttacking) { sword.PlayAttackAnimation(); } }
// Update is called once per frame void Update() { if (Input.GetKey(attackKey)) { sword.PlayAttackAnimation(); } }