void Awake() { gameObject.hideFlags = HideFlags.HideAndDontSave; DontDestroyOnLoad(gameObject); if (null == _instance) { _instance = this; } }
void Awake() { gameObject.hideFlags = HideFlags.HideAndDontSave; DontDestroyOnLoad (gameObject); if (null == _instance) { _instance = this; } }