示例#1
0
 private void Awake()
 {
     _reloaded = false;
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#2
0
 public static void OnReloadScene()
 {
     ReloadScene?.Invoke();
 }
示例#3
0
 private void Awake()
 {
     reload = GetComponent <ReloadScene>();
 }