public static void Hide() { if (instance != null) { UiShowHide.HideAll(instance.transform); Destroy(instance.gameObject, 1); instance = null; } }
// Will be called before destroying this object. return time of closing animation public virtual float PreClose() { return(UiShowHide.HideAll(transform)); }