void OnEnable()
 {
     instance = this;
     minSize = new Vector2(320, 128);
 }
 void OnDisable()
 {
     if (prefs != null) prefs.Save();
     instance = null;
 }