IEnumerator ViroStatPowerUpTimer() { Game.SceneObjects.PowerUpState(true, 2); Game.PowerUps.powerUpViroStat = true; viroStatButton.GetComponent <UnityEngine.UI.Button>().enabled = false; birthControl.StopNaughtiness(); yield return(new WaitForSeconds(3f)); Game.SceneObjects.PowerUpState(false, 2); birthControl.StartNaughtiness(); viroStatButton.GetComponent <UnityEngine.UI.Button>().enabled = true; Game.PowerUps.powerUpViroStat = false; StopCoroutine(ViroStatPowerUpTimer()); }
private void Start() { birthControl.StartNaughtiness(); }