Added a check to only update when animation is playing

Currently, if you play two different animations one after another on a same object in different order than they were registered, the first animation that ended overwrites the second animation's transformation value with its last value.

Added a quick check to only update when isPlaying is set to true.