123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {
- "design":{
- "document":"",
- "id":"唯一ID",
- "name":"枪的名称",
- "icon":"枪 的2D icon 图片",
- "prefab":"预制体资源地址(相对于resources)",
- "fireType":"开火方式 0 单点 1 连发 2 三连发",
- "handFireAnimation":"手 开火动画名称",
- "handFireAnimationSpeed":"手 开火动画速度",
- "handReloadAnimation":"手 开火动画名称",
- "handReloadAnimationSpeed":"手 开火动画名称",
- "fireAnimationEvents":
- [
- {
- "frame":"动画开始多少秒时调用下面的func方法",
- "func":"回调方法名",
- "params":["参数数组"]
- }
- ],
- "fireSocketPath":"枪 的火花挂点路径",
- "gunFireAnimation":"枪口火花动画名",
- "skill":"怒气技能效果ID",
- "damage":"枪的伤害值",
- "clip":"弹夹子弹数量",
- "attackRange":"攻击范围 1 打1路 2 打2路 3 打3路",
- "attackCount":"攻击数量",
- "attackDistance":"攻击距离",
- "maxAnger":"怒气上限值"
- },
- "data":[
- {
- "id":1,
- "name":"手枪",
- "prefab":"d3d/weapons/Weapon001",
- "fireType":0,
- "handFireAnimation":"SingleShotFire",
- "handFireAnimationSpeed":1,
- "fireAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"LaunchBullet",
- "params":[]
- }
- ],
- "fireSocketPath":"RootNode/Weapon001/FireSocket",
- "gunFireAnimation":"GunFire",
- "handReloadAnimation":"Reload",
- "handReloadAnimationSpeed":1,
- "skill":1,
- "damage":10,
- "clip":6,
- "attackRange":1,
- "attackCount":1,
- "attackDistance":20,
- "maxAnger":100
- },
- {
- "id":2,
- "name":"散弹枪",
- "prefab":"d3d/weapons/Weapon002",
- "fireType":0,
- "handFireAnimation":"ShotgunFire",
- "handFireAnimationSpeed":1,
- "fireAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"LaunchBullet",
- "params":[]
- }
- ],
- "fireSocketPath":"RootNode/weapon002/FireSocket",
- "gunFireAnimation":"GunFire",
- "handReloadAnimation":"Reload",
- "handReloadAnimationSpeed":1,
- "skill":1,
- "damage":10,
- "clip":10,
- "attackRange":2,
- "attackCount":1,
- "attackDistance":10,
- "maxAnger":100
- },
- {
- "id":3,
- "name":"自动步枪",
- "prefab":"d3d/weapons/Weapon003",
- "fireType":1,
- "handFireAnimation":"AutomaticFire",
- "handFireAnimationSpeed":1,
- "fireAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"LaunchBullet",
- "params":[]
- }
- ],
- "fireSocketPath":"RootNode/weapon003/FireSocket",
- "gunFireAnimation":"RifleFire",
- "handReloadAnimation":"Reload",
- "handReloadAnimationSpeed":1,
- "skill":1,
- "damage":10,
- "clip":50,
- "attackRange":1,
- "attackCount":2,
- "attackDistance":40,
- "maxAnger":100
- }
- ]
- }
|