Beispiel #1
0
    public void NextRound()
    {
        if (_infiniteMode)
        {
            StartCoroutine(NextRoundSequence());
        }
        else
        {
            _roundCount++;

            if (_roundCount >= 3)
            {
                if (_goodEnding)
                {
                    _rightAnimationActions.StartAnimation();
                }
                else
                {
                    _wrongAnimationActions.StartAnimation();
                }
            }
            else
            {
                StartCoroutine(NextRoundSequence());
            }
        }
    }
Beispiel #2
0
 public void SkipScene()
 {
     if (!_wantSkip)
     {
         _animator.Play("skip_exit");
         _wantSkip = true;
     }
     else
     {
         _wantSkip = false;
         _animationActions.StartAnimation();
     }
 }
    private void CallNextText()
    {
        if (_textIndex < _introText.Length)
        {
            _textMesh.text = _introText[_textIndex];
            _textIndex++;

            StartCoroutine(LetterByLetter());
        }
        else
        {
            //Chama a próxima tela
            _animationActions.StartAnimation();
        }
    }