|
@@ -1,5 +1,4 @@
|
|
import EventListener from "../../../util/EventListener";
|
|
import EventListener from "../../../util/EventListener";
|
|
-import BaseEvent from "../../fight/evnet/base/BaseEvent";
|
|
|
|
import FDialogNoneNPC from "../../fight/evnet/FDialogNoneNPC";
|
|
import FDialogNoneNPC from "../../fight/evnet/FDialogNoneNPC";
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -8,7 +7,7 @@ import FDialogNoneNPC from "../../fight/evnet/FDialogNoneNPC";
|
|
const { ccclass, property } = cc._decorator;
|
|
const { ccclass, property } = cc._decorator;
|
|
|
|
|
|
@ccclass
|
|
@ccclass
|
|
-export default class Step2 extends BaseEvent {
|
|
|
|
|
|
+export default class Step2 extends cc.Component {
|
|
|
|
|
|
@property({
|
|
@property({
|
|
displayName: "稻草人",
|
|
displayName: "稻草人",
|
|
@@ -17,7 +16,6 @@ export default class Step2 extends BaseEvent {
|
|
ncp_1: cc.Node = null;
|
|
ncp_1: cc.Node = null;
|
|
|
|
|
|
onLoad() {
|
|
onLoad() {
|
|
- super.onLoad()
|
|
|
|
EventListener.on("step_2_1", this.dialog1, this);
|
|
EventListener.on("step_2_1", this.dialog1, this);
|
|
EventListener.on("step_2_2", this.dialog2, this);
|
|
EventListener.on("step_2_2", this.dialog2, this);
|
|
}
|
|
}
|