Example #1
0
 private void Start()
 {
     if (dialogSpawner == null)
     {
         DontDestroyOnLoad(gameObject);
         dialogSpawner = this;
     }
     else if (dialogSpawner != this)
     {
         Destroy(gameObject);
     }
 }