Exemplo n.º 1
0
    public void SetKills(eKillMsgType killType, bool isaced, string nameKill, string nameDeath, string readXml, EHeroKillTitle Title = EHeroKillTitle.eNoneTitel)
    {
        KillsDate killdate = new KillsDate();

        killdate.KillsType = killType;
        killdate.isAced    = isaced;
        killdate.NameKill  = nameKill;
        killdate.NameDeath = nameDeath;
        killdate.ReadXml   = readXml;
        killdate.Title     = Title;
        killdate.msgkill   = new MsgKill();
        if (KillMsgQueue.Count <= 5)
        {
            KillMsgQueue.Enqueue(killdate);
            SetKillShow();
        }
    }
Exemplo n.º 2
0
        public void ShowMsgInfo(eKillMsgType type, bool isaced, string namekill, string namedeath, string readXml, EHeroKillTitle Title)
        {
            SetLabel(type != eKillMsgType.eKillBuild);
            NameLabelKill.text = namekill;
            NameLabelDead.text = namedeath;
            string audio_name = null;

            SerialKill.gameObject.SetActive(false);
            if (Title != 0 && Title != EHeroKillTitle.eNoneTitel)
            {
                SerialKill.gameObject.SetActive(true);
                SerialKill.text = ConfigReader.GetMsgInfo((int)Title).content;
            }
            if (isaced == false)
            {
                switch ((eKillMsgType)type)
                {
                case eKillMsgType.eKillNormal:
                    break;

                case eKillMsgType.eKillDouble:
                    objDoubleKill.SetActive(true);
                    //audio_name = "Double_kill";
                    break;

                case eKillMsgType.eKillThree:
                    objThrebleKill.SetActive(true);
                    //audio_name = "Triple_kill";
                    break;

                case eKillMsgType.eFirstBlood:
                    objFirstBlood.SetActive(true);
                    //audio_name = "First_blood";
                    break;

                case eKillMsgType.eKillBuild:
                    SetLabel(type == eKillMsgType.eKillBuild);
                    namedeath     = string.Format(readXml, namekill, namedeath);
                    NameDate.text = namedeath;
                    break;
                }
            }
            else if (isaced)
            {
                objAced.SetActive(true);
                //audio_name = "Aced";
            }
            Anima.enabled = true;
            EffectTime    = 3f;
            isPlayEffect  = false;
        }
Exemplo n.º 3
0
    public void SetKillDeathPlayer(Byte killstate, int campID, UInt64 targetID, UInt64 killID, bool Aced, EHeroKillTitle Title)
    {
        MsgInfoManager.eKillMsgType m_type = (eKillMsgType)killstate;
        string         namekill            = null;
        string         readXml             = null;
        EntityCampType Type     = (EntityCampType)campID;
        string         namedead = null;

        SetAuido(m_type, Aced);
        if (Type == EntityCampType.CampTypeBad)
        {
            namekill = "中立势力";
            readXml  = ConfigReader.GetMsgInfo(10009).content;
            m_type   = MsgInfoManager.eKillMsgType.eKillBuild;
        }
        else
        {
            readXml = ConfigReader.GetMsgInfo(10008).content;
        }

        if ((int)campID % 2 == 0)
        {
            Type = EntityCampType.CampTypeB;
        }
        else
        {
            Type = EntityCampType.CampTypeA;
        }
        namedead = GetNameGame(targetID);
        if (namekill == null)
        {
            namekill = GetNameGame(killID);
        }
        if (namekill != null)
        {
            MsgInfoManager.Instance.SetAudioPlay(killID, AudioPlayType.TwentySconde);
        }
        else
        {
            if (Type == EntityCampType.CampTypeA)
            {
                namekill = "精灵势力";
            }
            else
            {
                namekill = "亡灵势力";
            }
            m_type = MsgInfoManager.eKillMsgType.eKillBuild;
        }
        if (namekill == null || namedead == null || readXml == null)
        {
            return;
        }
        if (Aced)
        {
            MsgInfoManager.Instance.SetKills(m_type, Aced, namekill, namedead, readXml, Title);
            Aced = false;
        }

        MsgInfoManager.Instance.SetKills(m_type, Aced, namekill, namedead, readXml, Title);
    }