private void OnFailedToConnect(NetworkConnectionError error)
 {
     if (GenClass != null)
     {
         GenClass.OnFailedToConnect(error);
     }
 }