Example #1
0
 public void Preloading()
 {
     //wait 1 second to see preloader.
     FastTweener.Schedule(1, () =>
     {
         playerProfileManager.Load();
         loaderViewManager.LoadMainMenu();
     });
 }
Example #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); });
     });
 }
Example #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); });
    }