Пример #1
0
 void Start()
 {
     HighScoreText.SetActive(false);
     scoreText.text = "0";
     Kills.SetActive(false);
     MyEventManager.Instance.DeactivatePooledObjects.Dispatch();
     LeanTween.value(0f, ScoreManager.Instance.GetScore(), .5f).setOnUpdate(OnUpdate).setOnComplete(OnComplete);
 }
Пример #2
0
 private void AnimateHighscore()
 {
     HighScoreText.SetActive(true);
     LeanTween.value(.8f, 1f, .5f).setOnUpdate(OnValueChanged).setLoopPingPong();
 }