void OnDestroy() { if (Instance == this) { Instance = null; } }
void Awake() { if (Instance != null) { DestroyImmediate(this.gameObject); } else { Instance = this; } }
private void OnLoadingVideo(object sender, Forms.EventHandlers.LoadingVideoEventArgs e) { LoadingVideo?.Invoke(this, e); }