예제 #1
0
        private void SetSequence(PedestrianSequence seq)
        {
            if (_currentSequence == seq)
            {
                return;
            }

            _currentSequence = seq;
            _frameIndex      = 0;
            _frameTime       = 0;
            _inLoopingFrames = (_currentSequence.InitialFrames.Count == 0);  //if no initialframes, jump straight to looping frames

            UpdateFrameRate();
        }
예제 #2
0
        private void SetSequence(PedestrianSequence seq)
        {
            if (_currentSequence == seq) return;

            _currentSequence = seq;
            _frameIndex = 0;
            _frameTime = 0;
            _inLoopingFrames = (_currentSequence.InitialFrames.Count == 0);  //if no initialframes, jump straight to looping frames

            UpdateFrameRate();
        }