private void Update()
 {
     returnedState = currentState.Update(this, Time.deltaTime);
     CheckStateSwap();
 }