|
@@ -20,6 +20,11 @@ export default class Step2 extends cc.Component {
|
|
|
EventListener.on("step_2_2", this.dialog2, this);
|
|
|
}
|
|
|
|
|
|
+ onDestroy() {
|
|
|
+ EventListener.off("step_2_1", this.dialog1, this);
|
|
|
+ EventListener.off("step_2_2", this.dialog2, this);
|
|
|
+ }
|
|
|
+
|
|
|
dialog1() {
|
|
|
let npc = this.ncp_1.getComponent(FDialogNoneNPC);
|
|
|
npc.dialog1();
|