Ejemplo n.º 1
0
 public void EndBoost()
 {
     boostTween.Kill();
     boostTween = FastTweener.Float(boost.volume, 0, 0.5f, f => { boost.volume = f; }, () =>
     {
         boost.Stop();
     });
 }
Ejemplo n.º 2
0
 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); });
     });
 }
Ejemplo n.º 3
0
    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); });
    }