コード例 #1
0
    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());
    }
コード例 #2
0
 private void Start()
 {
     birthControl.StartNaughtiness();
 }