public void Start() { SGCross.supergood = this.SGGameObject; sgAdsGO = Instantiate(Resources.Load("SGAdsCanvas", typeof(SGAdsGO)) as SGAdsGO) as SGAdsGO; SGConfig.Instant.ReadConfig(); SGCross.OnDllLoaded(); MonoBehaviour.Destroy(this); }
public void ReadConfig() { if (!ReadConfigFromExtern()) { ReadConfigFromLocal(localPath); } if (this.onCompleteDelegate != null) { this.onCompleteDelegate(false); } AdManager adManager = AdManager.instant; SGCross.LoadResource(this); }