コード例 #1
0
        private static DRewardPopupScreen buildSplashScreen(DRewardPopup popupData)
        {
            DRewardPopupScreenSplash dRewardPopupScreenSplash = new DRewardPopupScreenSplash();

            dRewardPopupScreenSplash.SplashScreenTextToken = popupData.SplashTitleToken;
            dRewardPopupScreenSplash.IsRewardsAllNonMember = true;
            switch (popupData.PopupType)
            {
            case DRewardPopup.RewardPopupType.levelUp:
                dRewardPopupScreenSplash.ScreenType = DRewardPopupScreen.RewardScreenPopupType.splash_levelup;
                break;

            case DRewardPopup.RewardPopupType.questComplete:
            case DRewardPopup.RewardPopupType.generic:
                dRewardPopupScreenSplash.ScreenType = DRewardPopupScreen.RewardScreenPopupType.splash;
                break;

            case DRewardPopup.RewardPopupType.replay:
                dRewardPopupScreenSplash.ScreenType = DRewardPopupScreen.RewardScreenPopupType.splash_replay;
                break;
            }
            return(dRewardPopupScreenSplash);
        }
コード例 #2
0
 public override void Init(DRewardPopupScreen screenData, RewardPopupController popupController)
 {
     this.screenData      = (DRewardPopupScreenSplash)screenData;
     this.popupController = popupController;
     Service.Get <EventDispatcher>().DispatchEvent(default(RewardPopupSplashShown));
 }