IEnumerator Weapon1Cooldown() { yield return(new WaitForSeconds(equippedWeapon1.usageCooldown)); if (equippedWeapon1.stopsMovement) { myMovementController.TurnOnMovement(); } weap1InUse = false; Debug.Log("Setting the weapon 1 in use to " + weap1InUse); }