private void OnBecameInvisible()
 {
     if (GenClass != null)
     {
         GenClass.OnBecameInvisible();
     }
 }