public void Update()
 {
     if (currentState != null)
     {
         currentState.Update();
     }
 }