public bool Show(AdPosition position)
        {
            double y = 0; // default y-asix to 0

            switch (position)
            {
            case AdPosition.TOP: {
                break;
            }

            case AdPosition.BOTTOM: {
#if UNITY_ANDROID
                if (Screen.width > Screen.height)
                {
                    y = AdUtility.height() - heightFromType(this.size);
                }
                else
                {
                    y = AdUtility.height();
                }
#else
                y = AdUtility.height() - heightFromType(this.size);
#endif

                break;
            }

            case AdPosition.CUSTOM: {
                Debug.LogWarning("Use Show(double y) instead");
                break;
            }
            }
            return(this.Show(y));
        }
Exemplo n.º 2
0
 public void ShowBanner()
 {
     if (isBannerLoaded)
     {
         isShowOnLoaded = true;
         this.banner.Show(AdUtility.height() - 50);
     }
 }
Exemplo n.º 3
0
        public bool Show(AdPosition position)
        {
            double y = 0.0;

            switch (position)
            {
            case AdPosition.BOTTOM:
                y = AdUtility.height() - heightFromType(size);
                break;

            case AdPosition.CUSTOM:
                UnityEngine.Debug.LogWarning("Use Show(double y) instead");
                break;
            }
            return(Show(y));
        }
Exemplo n.º 4
0
        public bool Show(AdPosition position)
        {
            double y = 0; // default y-asix to 0

            switch (position)
            {
            case AdPosition.TOP: {
                break;
            }

            case AdPosition.BOTTOM: {
                y = AdUtility.height() - heightFromType(this.size);
                break;
            }

            case AdPosition.CUSTOM: {
                Debug.LogWarning("Use Show(double y) instead");
                break;
            }
            }
            return(this.Show(y));
        }