void upgradeTick() { bool ctrl = Input.GetKey(KeyCode.LeftControl); Ab1 = Input.GetKey(KeyCode.Q); Ab2 = Input.GetKey(KeyCode.W); Ab3 = Input.GetKey(KeyCode.E); Ab4 = Input.GetKey(KeyCode.R); if (Ab1 && ctrl && isUpgrading) { IndQ.chooseLevelUp(1); } if (Ab2 && ctrl && isUpgrading) { IndW.chooseLevelUp(2); } if (Ab3 && ctrl && isUpgrading) { IndE.chooseLevelUp(3); } if (Ab4 && ctrl && isUpgrading) { IndR.chooseLevelUp(4); } IndQ.updateCooldownNum(CDQ); IndW.updateCooldownNum(CDW); IndE.updateCooldownNum(CDE); IndR.updateCooldownNum(CDR); }