Beispiel #1
0
 public void Reset()
 {
     FrontLine.SetActive(false);
     BackLine.SetActive(false);
     BackLine.transform.localScale = new Vector3(0f, BackLine.transform.localScale.y);
     _curTint = 1f - _stepTint * 4;
 }
Beispiel #2
0
 public void StartNext()
 {
     Updating = true;
     FrontLine.transform.localScale = new Vector3(0f, FrontLine.transform.localScale.y);
     if (BackLine.activeSelf)
     {
         var tint = _curTint - 0.15f;
         _backTint.Color = new Color(tint, tint, tint);
         BackLine.transform.localScale = new Vector3(LevelSpawner.Distance * 2 + 1, BackLine.transform.localScale.y);
     }
     else
     {
         BackLine.SetActive(true);
         FrontLine.SetActive(true);
     }
     _curTint        += _stepTint;
     _frontTint.Color = new Color(_curTint, _curTint, _curTint);
     _t = 0f;
 }