public IEnumerator OnNetMsg_NotifySkillModelHitTargetCoroutine(HitTar pMsg)
    {
        //创建特效
        UInt64 ownerID  = pMsg.guid;
        UInt64 targetID = pMsg.targuid;

        yield return(1);

        EffectManager.Instance.CreateBeAttackEffect(ownerID, targetID, pMsg.effectid);//创建受击特效
    }
Esempio n. 2
0
    public IEnumerator OnNetMsg_NotifySkillModelHitTargetCoroutine(HitTar pMsg)
    {
        //创建特效
        UInt64 ownerID;

        ownerID = pMsg.guid;
        UInt64 targetID;

        targetID = pMsg.targuid;

        EventCenter.Broadcast <UInt64, uint, UInt64>((Int32)GameEventEnum.GameEvent_BroadcastBeAtk, ownerID, pMsg.effectid, targetID);//添加警告  光圈
        yield return(1);

        HolyTech.Effect.EffectManager.Instance.CreateBeAttackEffect(ownerID, targetID, pMsg.effectid);//创建受击特效
    }
 public int OnNotifySkillModelHitTarget(HitTar pMsg)
 {
     StartCoroutine(OnNetMsg_NotifySkillModelHitTargetCoroutine(pMsg));
     return((Int32)ErrorCodeEnum.Normal);
 }