Esempio n. 1
0
 private void Awake()
 {
     if (SceneSwitcher.instance == null)
     {
         SceneSwitcher.instance = this;
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         SceneSwitcher.Destroy(this.gameObject);
     }
 }