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(); }
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(); }