Пример #1
0
    private void ShowLevelUpSoldier()
    {
        Main_UI_LevelUpAlarmSoldier main_UI_LevelUpAlarmSoldier = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MAIN_UI_LEVELUP_ALARM_SOLDIER) as Main_UI_LevelUpAlarmSoldier;

        if (main_UI_LevelUpAlarmSoldier == null)
        {
            main_UI_LevelUpAlarmSoldier = (NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_LEVELUP_ALARM_SOLDIER) as Main_UI_LevelUpAlarmSoldier);
        }
        if (main_UI_LevelUpAlarmSoldier != null && this.m_kSolInfo != null)
        {
            main_UI_LevelUpAlarmSoldier.SetInfo(this.m_kSolInfo);
            main_UI_LevelUpAlarmSoldier.Show();
        }
        BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

        if (bookmarkDlg != null)
        {
            bookmarkDlg.UpdateBookmarkInfo(BookmarkDlg.TYPE.HERO);
        }
        HeroCollect_DLG heroCollect_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.HEROCOLLECT_DLG) as HeroCollect_DLG;

        if (heroCollect_DLG != null)
        {
            heroCollect_DLG.Update_Notice();
        }
        TsAudioManager.Container.RequestAudioClip("UI_SFX", "MERCENARY", "LEVEL_UP", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
    }
    private void MessageBox_PreviewHero(object a_oObject)
    {
        int num = (int)a_oObject;

        if (num < 0)
        {
            return;
        }
        GS_PREVIEW_HERO_START_REQ gS_PREVIEW_HERO_START_REQ = new GS_PREVIEW_HERO_START_REQ();

        gS_PREVIEW_HERO_START_REQ.i32CharKind = num;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PREVIEW_HERO_START_REQ, gS_PREVIEW_HERO_START_REQ);
        HeroCollect_DLG heroCollect_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.HEROCOLLECT_DLG) as HeroCollect_DLG;

        if (heroCollect_DLG != null)
        {
            NrTSingleton <NkClientLogic> .Instance.GidPrivewHero = 433;
        }
    }
Пример #3
0
    public void ShowLevelUpAlarm2()
    {
        NrCharUser nrCharUser = NrTSingleton <NkCharManager> .Instance.GetChar(1) as NrCharUser;

        if (nrCharUser != null)
        {
            NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            if (kMyCharInfo != null)
            {
                int level = kMyCharInfo.GetLevel();
                for (int i = this.startLevel + 1; i <= level; i++)
                {
                    if (this.dic_levelupInfo.ContainsKey(i))
                    {
                        LevelupInfoDLG levelupInfoDLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.LEVELUP_GUIDE_DLG) as LevelupInfoDLG;

                        levelupInfoDLG.Show(this.dic_levelupInfo[i]);
                    }
                }
                this.startLevel = kMyCharInfo.GetLevel();
                BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

                if (bookmarkDlg != null)
                {
                    bookmarkDlg.UpdateBookmarkInfo(BookmarkDlg.TYPE.HERO);
                }
                HeroCollect_DLG heroCollect_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.HEROCOLLECT_DLG) as HeroCollect_DLG;

                if (heroCollect_DLG != null)
                {
                    heroCollect_DLG.Update_Notice();
                }
                Tapjoy.SetUserLevel(kMyCharInfo.GetLevel());
                string comment = string.Format("levelup{0}", kMyCharInfo.GetLevel());
                NrTSingleton <FiveRocksEventManager> .Instance.Placement(comment);

                eSERVICE_AREA currentServiceArea = NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea();

                if (currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORGOOGLE || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORQA)
                {
                    NrTSingleton <AdWords> .Instance.LevelUp(kMyCharInfo.GetLevel());
                }
                DateTime dateTime  = DateTime.Now.ToLocalTime();
                DateTime arg_158_0 = dateTime;
                DateTime dateTime2 = new DateTime(1970, 1, 1, 0, 0, 0, 0);
                int      num       = (int)(arg_158_0 - dateTime2.ToLocalTime()).TotalSeconds;
                Dictionary <string, string> dictionary = new Dictionary <string, string>();
                dictionary.Add("ts", num.ToString());
                dictionary.Add("level", kMyCharInfo.GetLevel().ToString());
                dictionary.Add("account_id", kMyCharInfo.m_SN.ToString());
                GameObject pkGoOminiata = StageSystemCheck.pkGoOminiata;
                if (pkGoOminiata)
                {
                    OmniataComponent component = pkGoOminiata.GetComponent <OmniataComponent>();
                    if (component)
                    {
                        component.Track("om_level", dictionary);
                    }
                }
                if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel() >= 10 && PlayerPrefs.GetInt(NrPrefsKey.PLAYER_PLAYLOCKDEVICEID_SEND, 0) == 0)
                {
                    TsPlatform.Operator.GetPlayLockID();
                }
            }
            NrTSingleton <NkClientLogic> .Instance.ShowChangeGuestIDUI();
        }
    }