예제 #1
0
    public IEnumerator hitX2()
    {
        powerX2 = true;
        yield return(StartCoroutine(WFRSecond.wait(x2time)));

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

        powerSlow      = false;
        Time.timeScale = 1.0f;
    }
예제 #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();
 }