// Update is called once per frame void Update() { if (powerupActive) { powerupLengthCounter -= Time.deltaTime; if (theGameSceneManager.powerupReset) { powerupLengthCounter = 0; theGameSceneManager.powerupReset = false; } if (kunai) { powerupLengthCounter = 0; //theObjGenerator.CreateKunai(); } if (smokeBomb) { powerupLengthCounter = 0; theObjGenerator.CreateClouds(); } if (powerupLengthCounter <= 0) { //theScoreManager.pointsPerSecond = normalPointsPerSecond; //theScoreManager.shouldDouble = false; //theObjGenerator.randomBranchThreshold = branchRate; powerupActive = false; } } }