Exemple #1
0
        public static void ProcessOverlayResponse(ResponseEvent response)
        {
            string url = null;

            if (response.data.HasField("url"))
            {
                url = response.data.GetField("url").Print(false);
            }

            if (response.action.ToLower().Trim().Equals("show"))
            {
                if (response.eventName.ToLower().Equals("splashscreen"))
                {
                    OverlayManager.ShowSplashScreen(response.data, url);
                }
                else if (response.eventName.ToLower().Equals("dailybonus"))
                {
                    OverlayManager.ShowDailyBonus(response.data, url);
                }
            }
            else if (response.action.ToLower().Trim().Equals("notavailable"))
            {
                if (response.eventName.ToLower().Equals("splashscreen"))
                {
                    SpilUnityImplementationBase.fireSplashScreenNotAvailable();
                }
                else if (response.eventName.ToLower().Equals("dailybonus"))
                {
                    SpilUnityImplementationBase.fireDailyBonusNotAvailable();
                }
            }
        }
 /// <summary>
 /// This method is called by the native Spil SDK, it should not be used by developers.
 /// </summary>
 public void DailyBonusNotAvailable()
 {
     SpilUnityImplementationBase.fireDailyBonusNotAvailable();
 }