Exemple #1
0
    /// <summary>
    /// 炮弹兵请求寻路
    /// </summary>
    public static void DoDeadRequest(int DataID, tga.SoldierDeadRequest Info)
    {
        if (Info == null)
        {
            return;
        }

        DelLifeInfo(DataID);

        BSsyncDTask task = new BSsyncDTask();

        task.cmd           = new BscCmd(DataID, BSCEventType.BSC_Dead);
        task.RemainingTime = Random.Range(0.01f, 0.1f);
        tga.SoldierDeadResponse sresponse = new tga.SoldierDeadResponse();
        sresponse.time              = Info.time;
        sresponse.time.servertime   = Time.realtimeSinceStartup;
        sresponse.time.Responsetime = sresponse.time.servertime + task.RemainingTime;
        task.Info = sresponse;
        m_lTask.Add(task);
    }
Exemple #2
0
 /// <summary>
 /// 炮弹兵死亡请求
 /// </summary>
 public static void SoldierDeadRequest(int DataID, tga.SoldierDeadRequest Info)
 {
     BSsyncD.DoDeadRequest(DataID, Info);
 }