chelios 3 年之前
父节点
当前提交
5d214901e1
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      assets/Script/game/fight/object/AI/AIPet.ts

+ 7 - 2
assets/Script/game/fight/object/AI/AIPet.ts

@@ -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 {