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;
            }
        }
Example #2
0
 private void LWFAnimationHasBeenInited(LWFAnimation lwf)
 {
     _lwf = lwf;
     _lwf.Stop();
 }