void Awake() { if (_instance != null) { DestroyImmediate (gameObject); } else { DontDestroyOnLoad (gameObject); _instance = this; } }
void Awake() { if (_instance != null) { DestroyImmediate(gameObject); } else { DontDestroyOnLoad(gameObject); _instance = this; } }