void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad (gameObject); } else { Destroy(this); } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }