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