Improve AnimationManager.cs