private void OnApplicationPause(bool pause)
 {
     if (GenClass != null)
     {
         GenClass.OnApplicationPause(pause);
     }
 }