Beispiel #1
0
 private void Awake()
 {
     if (_Instance == null)
     {
         _Instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
Beispiel #2
0
 private void OnDestroy()
 {
     _Instance = null;
     _applicationIsQuitting = true;
 }