public IEnumerator hitX2() { powerX2 = true; yield return(StartCoroutine(WFRSecond.wait(x2time))); powerX2 = false; }
public IEnumerator hitSlow() { powerSlow = true; Time.timeScale = 0.5f; yield return(StartCoroutine(WFRSecond.wait(slowTime * slowRatio))); powerSlow = false; Time.timeScale = 1.0f; }
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(); }