新英雄
This commit is contained in:
@@ -116,15 +116,15 @@ export const HeroInfo: Record<number, heroInfo> = {
|
||||
|
||||
|
||||
//怪物
|
||||
5201:{uuid:5201,name:"兽人战士",path:"hk1", fac:FacSet.MON, kind:1,
|
||||
5201:{uuid:5201,name:"兽人战士",path:"mo1", fac:FacSet.MON, kind:1,
|
||||
type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6005],
|
||||
buff:[],debuff:[],info:"普通怪物-战士型"},
|
||||
|
||||
5202:{uuid:5202,name:"兽人刺客",path:"hk1", fac:FacSet.MON, kind:1,
|
||||
5202:{uuid:5202,name:"兽人刺客",path:"mo1", fac:FacSet.MON, kind:1,
|
||||
type:HType.remote,lv:1,hp:20,mp:100,map:100,def:5,ap:5,dis:350,cd:1,speed:100,skills:[6005],
|
||||
buff:[],debuff:[],info:"普通怪物-战士型"},
|
||||
|
||||
5203:{uuid:5203,name:"兽人护卫",path:"hk1", fac:FacSet.MON, kind:1,
|
||||
5203:{uuid:5203,name:"兽人护卫",path:"mo1", fac:FacSet.MON, kind:1,
|
||||
type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6005],
|
||||
buff:[],debuff:[],info:"普通怪物-战士型"},
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ export default class HeroAnmComp extends Component{
|
||||
private anmcon:any=null
|
||||
private _hasStop = true;
|
||||
private default_anim:string='Idle'
|
||||
anms:any[]=["idle","move","atk1","atk2","atk","max","max1","stun","dead","buff"]
|
||||
anms:any[]=["idle","move","stun","dead","buff","atk0","atk1","atk2","max0","max1"]
|
||||
onLoad () {
|
||||
this.anmcon=this.node.getComponent(Animation)
|
||||
this.anmcon.on(Animation.EventType.FINISHED, this.onAnimationFinished, this);
|
||||
@@ -31,12 +31,12 @@ export default class HeroAnmComp extends Component{
|
||||
this.default_anim='move'
|
||||
}
|
||||
atk () {
|
||||
if(this.anmcon.getState("atk").isPlaying) return
|
||||
this.anmcon.play("atk")
|
||||
if(this.anmcon.getState("atk0").isPlaying) return
|
||||
this.anmcon.play("atk0")
|
||||
}
|
||||
max () {
|
||||
if(this.anmcon.getState("max").isPlaying) return
|
||||
this.anmcon.play("max")
|
||||
if(this.anmcon.getState("max0").isPlaying) return
|
||||
this.anmcon.play("max0")
|
||||
}
|
||||
idle () {
|
||||
if(this.anmcon.getState("idle").isPlaying) return
|
||||
|
||||
Reference in New Issue
Block a user