/// <summary> /// 炮弹兵请求技能攻击 /// </summary> public static void DoSkillAttackRequest(int DataID, tga.SoldierSkillAttackRequest Info) { if (Info == null) { return; } UpdataLifeInfo(DataID, Info.info); BSsyncDTask task = new BSsyncDTask(); task.cmd = new BscCmd(DataID, BSCEventType.BSC_RunRoad); task.RemainingTime = Random.Range(0.01f, 0.1f); tga.SoldierSkillAttackResponse sresponse = new tga.SoldierSkillAttackResponse(); for (int i = 0; i < Info.SkillObjlist.Count; i++) { sresponse.SkillObjlist.Add(Info.SkillObjlist[i]); } sresponse.time = Info.time; sresponse.time.servertime = Time.realtimeSinceStartup; sresponse.time.Responsetime = sresponse.time.servertime + task.RemainingTime; task.Info = sresponse; m_lTask.Add(task); }
/// <summary> /// 炮弹兵请求技能攻击 /// </summary> public static void SkillAttackRequest(int DataID, tga.SoldierSkillAttackRequest Info) { BSsyncD.DoSkillAttackRequest(DataID, Info); }