void ProcessInputs() { if (Input.GetButtonDown("Fire1")) { IsFiring = true; melee.swing(); } if (Input.GetKeyDown(KeyCode.Q)) { if (mana.CurrentVal != 0) { if (Time.time > fireSpellStart + fireSpellCooldown) { spell.spellCast(); mana.CurrentVal -= 1; fireSpellStart = Time.time; } } } }