// Start is called before the first frame update private void Awake() { if (instance == null) { instance = this; } }
private void Awake() { DontDestroyOnLoad(this.gameObject); if (instance == null) { instance = this; } else { Destroy(this.gameObject); } }
// Use this for initialization void Awake() { DontDestroyOnLoad(this.gameObject);//ma btdmar 3l load aw unload if (instance == null) { instance = this; } else { Destroy(this.gameObject); } }
void Awake() { // keep AdManager instance alive DontDestroyOnLoad(this.gameObject); if (instance == null) { instance = this; } else { Destroy(this.gameObject); // there is already an instance so detroy } }
void Awake() { DontDestroyOnLoad(this.gameObject); if (instance == null) { instance = this; } else { Destroy(this.gameObject); } Advertisement.Initialize("1675995", false); }