private void OnTouch()
        {
            if (_lwf.Movie.playing && _animationList.Count == 1)
            {
                _lwf.Stop();
                return;
            }

            _lwf.Play(_animationList[_currentAnimationIndex]);
            if (_currentAnimationIndex < _audioList.Count)
            {
                _audioList[_currentAnimationIndex].Play();
            }
            //AudioController.Play(_audioList[_currentAnimationIndex]);

            _currentAnimationIndex++;

            if (_currentAnimationIndex == _animationList.Count)
            {
                _currentAnimationIndex = 0;
            }
        }
Beispiel #2
0
 public void PlayInAnimation()
 {
     RightPipe.Play(IN_ANIM_NAME);
 }
Beispiel #3
0
 public void PlayOutAnimation()
 {
     LeftPipe.Play(OUT_ANIM_NAME);
 }
Beispiel #4
0
 public void Show()
 {
     _lwf.OnPlayFinished = OnShowFinished;
     _lwf.Play(_showAnimName);
 }