예제 #1
0
        private static string GetCreepUIMessageCampInfoContent(Units inAttacker)
        {
            if (Singleton <PvpManager> .Instance.IsObserver)
            {
                return(PromptHelper.GetFriendlyText(inAttacker.TeamType));
            }
            int num;

            if (inAttacker.isPlayer)
            {
                num = 162;
            }
            else if (inAttacker.isMyTeam)
            {
                num = 163;
            }
            else
            {
                num = 164;
            }
            SysPromptVo dataById = BaseDataMgr.instance.GetDataById <SysPromptVo>(num.ToString());

            if (dataById != null)
            {
                return(LanguageManager.Instance.GetStringById(dataById.prompt_text));
            }
            return(string.Empty);
        }
예제 #2
0
        private void P2C_SurrenderTakeEffect(MobaMessage msg)
        {
            SurrenderStartInfo probufMsg = msg.GetProbufMsg <SurrenderStartInfo>();
            TeamType           teamType  = this.IsLm(probufMsg.info);

            if (teamType == Singleton <PvpManager> .Instance.SelfTeamType)
            {
                this.IsPassed    = true;
                this.HasAllVoted = true;
            }
            PromptHelper.PromptFormat("167", new object[]
            {
                PromptHelper.GetFriendlyText(teamType)
            });
            CtrlManager.CloseWindow(WindowID.SurrenderView);
        }