private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != null) { Destroy(this); } Init(); }