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