// Update is called once per frame void Update() { if (Time.timeScale != 0f) { secondsScore += Time.deltaTime; secondsPassed = (int)secondsScore; scoreText.text = "" + gameScore; PopText(); } if (Input.GetKeyDown(KeyCode.P)) //Power up activation { powerups.nukePowerUp(null); } }
public void onClick() { this.gameObject.tag = "Animation"; if (this.type == 1) { powerups.nukePowerUp(this.gameObject); } else if (this.type == 2) { powerups.slowDownTime(this.gameObject); } else if (this.type == 3) { powerups.shieldPowerUp(this.gameObject); } }