Example #1
0
        public static void Initialize(AdsMasterSetting settings)
        {
            if (instance != null || settings == null)
            {
                return;
            }
            // Tạo game object
            var go = new GameObject("AdsMaster");

            instance = go.AddComponent <AdsMaster>();
            DontDestroyOnLoad(go);
            // Assign settings
            AdsMaster.settings = settings;
            // Load remote config if need
            instance.InitRemoteConfig();
            InitAdNetworks();
#if FBAD
            FbNativeAdManager.Initialize();
#endif
        }