public static IEnumerator PreloadResources() { yield return(instance.PreloadResourcesInternal()); OnLoadedEvent?.Invoke(); }
public override void FinishLoading() { OnLoadedEvent.Invoke(); canvasGroup.DOFade(0.0f, 1f).SetDelay(0.3f).OnComplete(() => { GameObject.Destroy(this.gameObject); }); }