private void CheckForStuffToStart(bool isWorldLoaded)
 {
     if (!isWorldLoaded)
     {
         if (WowDataAdapter?.ObjectUpdatesEnabled == true)
         {
             WowDataAdapter.StopObjectUpdates();
         }
         if (StateMachine?.Enabled == true)
         {
             StateMachine.Stop();
         }
         if (WowEventAdapter?.Enabled == true)
         {
             WowEventAdapter.Stop();
         }
     }
     else
     {
         if (WowDataAdapter?.ObjectUpdatesEnabled == false)
         {
             WowDataAdapter.StartObjectUpdates();
         }
         if (StateMachine?.Enabled == false)
         {
             StateMachine.Start();
         }
         if (WowEventAdapter?.Enabled == false)
         {
             WowEventAdapter.Start();
         }
     }
 }
 public void Detach()
 {
     StateMachine?.Stop();
     WowEventAdapter?.Stop();
     WowActionExecutor?.Stop();
     WowPathfindingClient?.Disconnect();
     WowDataAdapter?.StopObjectUpdates();
     Attached = false;
 }