Animation advice

I am not sure if I code the animation right. It works but is my way the best to do this?

Can u give pls some advice?

I load a model and gets the JointController (btw. I still don