private void ShowInstruction(AdPackage.Package package) { EditorGUILayout.Separator(); EditorGUILayout.HelpBox("Follow the instructions below on how to enable the " + Packages [selectedPackage] + " Advertisements", MessageType.Info); EditorGUILayout.Separator(); showInstructions = EditorGUILayout.Foldout(showInstructions, "Instructions"); EditorGUILayout.Separator(); if (!showInstructions) { return; } EditorGUILayout.BeginHorizontal(); ShowReadManual(); ShowContactUS(); EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); if (package == AdPackage.Package.ADMOB) { ShowAdmobInstructions(); } else if (package == AdPackage.Package.CHARTBOOST) { ShowChartBoostInstructions(); } else if (package == AdPackage.Package.UNITY) { ShowUnityAdsInstructions(); } ShowCommonInstructions(); EditorGUILayout.Separator(); }
/// <summary> /// Whether the package in the adPackagees list /// </summary> /// <returns><c>true</c>, if package was found, <c>false</c> otherwise.</returns> /// <param name="adPackagees">Ad Packages List.</param> /// <param name="package">The given package.</param> public bool InAdPackagesList(List <AdPackage> adPackagees, AdPackage.Package package) { if (adPackages == null) { return(false); } foreach (AdPackage adPackage in adPackages) { if (adPackage.package == package) { return(true); } } return(false); }