chelios %!s(int64=3) %!d(string=hai) anos
pai
achega
5d214901e1
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  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 {