Browse Source

地刺扩展,碰撞到后击退

chelios 3 years ago
parent
commit
180ae52eeb

+ 26 - 0
assets/Script/game/element/JG0108_1.ts

@@ -0,0 +1,26 @@
+import BaseEvent from "../fight/evnet/base/BaseEvent";
+
+/**
+ * 地刺
+ * 扩展地刺,碰撞后被弹出
+ */
+const { ccclass, property } = cc._decorator;
+
+@ccclass
+export default class JG0108_1 extends BaseEvent {
+
+    /**
+     * 主角进入碰撞区域
+     *  @param tag 碰撞组件编号
+     */
+    public onBegin(tag: number) {
+
+    }
+    /**
+     * 主角离开碰撞区域
+     * @param tag 碰撞组件编号
+     */
+    public onEnd(tag: number) {
+
+    }
+}

+ 9 - 0
assets/Script/game/element/JG0108_1.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.8",
+  "uuid": "e6226b2c-c099-4da5-8af9-fffbefc84149",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 2 - 2
assets/resources/prefab/map/map2.prefab

@@ -624,7 +624,7 @@
       "__id__": 6
     },
     "_children": [],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 17
@@ -714,7 +714,7 @@
       "__id__": 6
     },
     "_children": [],
-    "_active": false,
+    "_active": true,
     "_components": [
       {
         "__id__": 20