Exemple #1
0
 private void Start()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
     if (LevelLoaded.GetPersistentEventCount() > 0)
     {
         LevelLoaded.Invoke();
     }
 }