IEnumerator increaseSpeed() { /* */ float currentAccel = player.carController.getAccel(); player.carController.setAccel(currentAccel * 2f); print("reset to " + currentAccel); speedModifier.addSpeed(); yield return(new WaitForSeconds(3)); speedModifier.removeSpeed(); player.carController.setAccel(currentAccel); Destroy(gameObject); }