Exemplo n.º 1
0
    public IEnumerator hitX2()
    {
        powerX2 = true;
        yield return(StartCoroutine(WFRSecond.wait(x2time)));

        powerX2 = false;
    }
Exemplo n.º 2
0
    public IEnumerator hitSlow()
    {
        powerSlow      = true;
        Time.timeScale = 0.5f;
        yield return(StartCoroutine(WFRSecond.wait(slowTime * slowRatio)));

        powerSlow      = false;
        Time.timeScale = 1.0f;
    }
Exemplo n.º 3
0
 public IEnumerator countdown()
 {
     isCountdownRunning = true;
     if (endDate == DateTime.MinValue)
     {
         TimeSpan timeSpan = new TimeSpan(0, minutesToNextCoin, 0);
         endDate = DateTime.Now.Add(timeSpan);
         saveData();
     }
     while (endDate > DateTime.Now)
     {
         yield return(StartCoroutine(WFRSecond.wait(1)));
     }
     coin++;
     isCountdownRunning = false;
     endDate            = DateTime.MinValue;
     saveData();
 }