//Calculates whether attack cooldown has elapsed
 // if so, resets attack timer
 // otherwise, increments attack timer
 public static bool CheckAttackTimer(EnemyController enemy)
 {
     float CD = enemy.GetAttackCD();
     float timer = enemy.GetAttackTimer();
     if (timer >= CD)
     {
         enemy.SetAttackTimer(0f);
         return true;
     }
     else
     {
         timer += Time.deltaTime;
         enemy.SetAttackTimer(timer);
         return false;
     }
 }