private void OnDestroy() { if (main == this) { Singleton().StopAllCoroutines(); main = null; } }
internal static VersionChecker Singleton() => main = main ?? new GameObject("VersionChecker").AddComponent <VersionChecker>();
private void OnDestroy() { if (main == this) { Singleton().StopAllCoroutines(); main = null; } }
internal static VersionChecker Singleton() => main = main ?? new GameObject("VersionChecker").AddComponent <VersionChecker>();