//---------------------------------------------------------------------------------------------------- #region Mono Behaviour Function void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
private void OnEnable() { Reference = (UniversalAdsController)target; }