void Update()
 {
     if (inputs != null)
     {
         direction.x = Input.GetAxis(inputs.GetName() + " " + XaxisName);
         direction.y = Input.GetAxis(inputs.GetName() + " " + YaxisName);
     }
 }