Help with Weapon Cooldown

I don’t see why it won’t apply a cool down to my animation.
using UnityEngine;
using System.Collections;

public class Sword : MonoBehaviour {

[SerializeField]
private float SwordCooldown = 3.0f;

private float SwordTimer;

private Animator Anim;
bool Swing;

void Start ()
{
Anim = GetComponent();
SwordTimer = 0;
}

void Update()
{
//Timer
SwordTimer -= Time.deltaTime;

if (SwordTimer <= 0)
{

//Play Animation when mouse is pressed
if (Input.GetMouseButtonDown(0))
{
Swing = true;
}
else
{
Swing = false;
}
}
Anim.SetBool(“Swing”, Swing);
}
}

You never used SwordCooldown anywhere. I’m guessing that is your cooldown that you want but you never used that code. You have a sword timer and it’s set to 0. and never anything else, it’s just growing negatively.

if (Input.GetMouseButtonDown(0))
{
   Swing = true;
   SwordTimer = SwordCooldown;
}