Пример #1
0
    public override void DoBeforeLeaving()
    {
        m_MonsterBehaviour.ShowHordeFlash(false);
        m_hordeKeepTime = 0;
        //this.m_MonsterBehaviour.HordeRelease();

        if (!DoNotSendBeatEnd)
        {
            if (GameManager.Instance.CurrentGameMode == GameMode.SINGLE_PLAYER)
            {
                SMsgHordeContextNum_CS sMsgHordeContextNum_CS = new SMsgHordeContextNum_CS();
                sMsgHordeContextNum_CS.byContextNum = 1;
                sMsgHordeContextNum_CS.list         = new List <SMsgFightHorde_CS>();

                SMsgFightHorde_CS sMsgFightHorde_CS = new SMsgFightHorde_CS();
                sMsgFightHorde_CS.byType     = 0;
                sMsgFightHorde_CS.uidFighter = m_MonsterBehaviour.RoleDataModel.SMsg_Header.uidEntity;
                sMsgFightHorde_CS.hitedPosX  = m_MonsterBehaviour.ThisTransform.position.x * 10.0f;
                sMsgFightHorde_CS.hitedPosY  = -m_MonsterBehaviour.ThisTransform.position.z * 10.0f;

                sMsgHordeContextNum_CS.list.Add(sMsgFightHorde_CS);

                NetServiceManager.Instance.BattleService.SendFightHorde_CS(sMsgHordeContextNum_CS);
            }
        }

        base.DoBeforeLeaving();
    }
Пример #2
0
    private void DoSendHorde()
    {
        if (hordeList.Count == 0)
        {
            return;
        }

        SMsgHordeContextNum_CS sMsgHordeContextNum_CS = new SMsgHordeContextNum_CS();

        sMsgHordeContextNum_CS.byContextNum = Convert.ToByte(hordeList.Count);
        sMsgHordeContextNum_CS.list         = hordeList;
        NetServiceManager.Instance.BattleService.SendFightHorde_CS(sMsgHordeContextNum_CS);
    }
Пример #3
0
 public void SendFightHorde_CS(SMsgHordeContextNum_CS sMsgHordeContextNum_CS)
 {
     this.Request(sMsgHordeContextNum_CS.GeneratePackage());
 }