Implemented animation for GameObjects.