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