private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); return; } _instance = this; }
private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Start () { Instance = this; DontDestroyOnLoad (gameObject); }
void Awake() { Manager = this; }