public static float GetAxis(string key) { float axis = 0; if(key != null && key != "") { axis = Input.GetAxisRaw(key); } return axis; }