Help, how to fix a set or get accessor expected

so i am a new programer and i get the error a get or set accesor expected here is my code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class punch : MonoBehaviour
{
public GameObject hand;
public bool CanAttack = true;
public float AttackCoolDwon = 1.0f;

void Update()

{
if(Input.GetMouseButtonDown(1))
} {

     if (CanAttack)

     

    

   }

}

              public void NewAnimation
              {

                 CanAttack = false;
                 Animator anim = hand.GetComponent<Animator>();
                 anim.SetTrigger("Attack");

              }

              IEnumerator ResetAttackCoolDown
              {

                  yeild return new WaitForSeconds(AttackCoolDwon);
                  CanAttack = true;

}

Well, I guess NewAnimation as well as ResetAttackCoolDown should be methods? In that case you’re missing the argument brackets when you define your methods. Without those brackets you would not define a method but a property. So the content of the curly brackets would need to contain a getter / setter definition and not executable code. Since you most likely want them to be methods you have to do

public void NewAnimation()
{
    // [ ...]

IEnumerator ResetAttackCoolDown()
{
    // [ ...]