|
@@ -7,7 +7,7 @@ namespace gameplay
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
AnimationController::AnimationController()
|
|
AnimationController::AnimationController()
|
|
|
- : _state(IDLE), _animations(NULL)
|
|
|
|
|
|
|
+ : _state(STOPPED), _animations(NULL)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -112,6 +112,7 @@ void AnimationController::stopAllAnimations()
|
|
|
clip->_isPlaying = false;
|
|
clip->_isPlaying = false;
|
|
|
clip->onEnd();
|
|
clip->onEnd();
|
|
|
SAFE_RELEASE(clip);
|
|
SAFE_RELEASE(clip);
|
|
|
|
|
+ clipIter++;
|
|
|
}
|
|
}
|
|
|
_runningClips.clear();
|
|
_runningClips.clear();
|
|
|
|
|
|
|
@@ -269,7 +270,7 @@ void AnimationController::initialize()
|
|
|
void AnimationController::finalize()
|
|
void AnimationController::finalize()
|
|
|
{
|
|
{
|
|
|
stopAllAnimations();
|
|
stopAllAnimations();
|
|
|
- _state = PAUSED;
|
|
|
|
|
|
|
+ _state = STOPPED;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void AnimationController::resume()
|
|
void AnimationController::resume()
|