void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
Beispiel #2
0
 public void TransitionScene(string _sceneName)
 {
     if (LoadScreenController.Instance != null)
     {
         LoadScreenController.Fade(1, () => {
             if (SceneChanger.Instance != null)
             {
                 SceneChanger.ChangeScene(_sceneName);
             }
         });
     }
 }