|
@@ -20,12 +20,17 @@ export default class AIPet extends AIBase {
|
|
|
|
|
|
onLoad() {
|
|
|
super.onLoad();
|
|
|
- this.speed = 100;
|
|
|
+ this.speed = 300;
|
|
|
this.sprite.SPEED_WALK = this.speed;
|
|
|
this.addSkill()
|
|
|
}
|
|
|
public addSkill() {
|
|
|
let skillFixed: SkillFixed = this.node.addComponent(SkillFixed)
|
|
|
+ skillFixed.count = 1;
|
|
|
+ skillFixed.time = 0;
|
|
|
+ skillFixed.btime = 1;
|
|
|
+ skillFixed.CD = 800;
|
|
|
+
|
|
|
cc.resources.load('prefab/bullet/' + this.sprite.attrData.bullet, cc.Prefab, (err, prefab: cc.Prefab) => {
|
|
|
if (err) {
|
|
|
cc.error(err);
|
|
@@ -78,7 +83,7 @@ export default class AIPet extends AIBase {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- this.walk(300);
|
|
|
+ // this.walk(300);
|
|
|
}
|
|
|
}
|
|
|
} else {
|