public void EndBoost() { boostTween.Kill(); boostTween = FastTweener.Float(boost.volume, 0, 0.5f, f => { boost.volume = f; }, () => { boost.Stop(); }); }
private void OnLoseCheckpoint() { loseCheckpointTween.Kill(); loseCheckpointText.gameObject.SetActive(true); loseCheckpointText.alpha = 1; loseCheckpointTween = FastTweener.Schedule(2, () => { loseCheckpointTween = FastTweener.Float(1, 0, 2, f => { loseCheckpointText.alpha = f; }, () => { loseCheckpointText.gameObject.SetActive(false); }); }); }
public IEnumerator Show() { yield return(new WaitForSeconds(1)); ready.SetActive(true); yield return(new WaitForSeconds(1)); ready.SetActive(false); steady.SetActive(true); yield return(new WaitForSeconds(1)); steady.SetActive(false); go.SetActive(true); tween = FastTweener.Schedule(1, () => { go.SetActive(false); }); }