Exemple #1
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(transform.gameObject);
     }
 }
Exemple #2
0
 public som(int id)
 {
     this.id       = id;
     this.d        = -1;
     this.previous = null;
 }