#if UNITY_EDITOR using UnityEngine; using UnityEngine.UI; using UnityEditor; namespace Azerion.BlueStack.Platforms.UnityEditor { public class BaseAdClient { protected static AdBehaviour AdBehaviour = new GameObject("AdBehaviour").AddComponent(); protected GameObject adPrefab, dummyAd = null; protected void LoadAndSetAdPrefab(string prefabName) { #if UNITY_WEBGL || UNITY_STANDALONE Debug.LogWarning("BlueStack doesn't support WegGL or PC ads at the moment."); #else adPrefab = AssetDatabase.LoadAssetAtPath(prefabName); if (adPrefab == null) { Debug.LogWarning("No Prefab found: " + prefabName); } #endif } protected RectTransform GetRectTransform(GameObject prefabAd) { Image myImage = prefabAd.GetComponentInChildren(); return myImage.GetComponent(); } } } #endif