Пример #1
0
    //技能使用
    public void ParseSkillCommand(BPSkill bp)
    {
        SkillCommand command = FightDefine.GetSkillCommand(bp.BattleId, bp.Frame, bp.SkillId, bp.SkillDir, bp.TargetPos, bp.TargetId);

        SceneEvent.GetInstance().dispatchEvent(SCENE_EVENT.ADD_COMMAND, new Notification(command));
    }
Пример #2
0
    //技能使用
    public void SendSkillCommand(uint battleId, int actionId, Vector3 dir, Vector3 targetPos, uint targetId)
    {
        BPSkill bp = new BPSkill(battleId, actionId, dir, targetPos, targetId);

        SendMsg(bp);
    }