public void OnDisable()
 {
     if (IsActive)
     {
         PlayerLoopManager.InvokeBeforeDomainUnload();
     }
 }