void Awake() { instance = this; if (Advertisement.isSupported) { Advertisement.Initialize("1024877"); } else { Debug.Log("Platform not supported"); } }
private void Awake() { DontDestroyOnLoad(this.gameObject); if (instance == null) { instance = this; } else { Destroy(this.gameObject); } }