future 1 rok pred
rodič
commit
a8118a9931

+ 1 - 1
assets/script/config.ts

@@ -5,7 +5,7 @@ const { ccclass, property } = _decorator;
 export class config {
     static debug = true;
     static domain = "https://zcapi.xwrun.com";
-    static version = '调试 v2.0.1'
+    static version = '调试 v2.0.2'
     static is_MAC_edit = false; //目前临时处理:如果是Mac并且浏览器打开了检查时设置为true,正式打包需要设置为false
     static select_res_and_control_type = {
         RES_TYPE:0,

+ 1 - 0
assets/script/run/TaskSchedule/taskServce.ts

@@ -424,6 +424,7 @@ export class taskServce {
             if(id==-1){
                 return tools.showToast("未设置全部找完任务的下一个事件!")
             }else{
+                console.log('找茬全部找到执行 找茬全部找到执行 找茬全部找到执行 ==',id)
                 taskServce.DistributedEvent(taskServce.getEventById(id))
             }
         }

+ 1 - 0
assets/script/run/top_layer.ts

@@ -37,6 +37,7 @@ export class top_layer extends Component {
     }
 
     public unInit(){
+        this.sound_text_content.getComponent(sound_text_content).onAudioEnded(false)
         this.sound_text_content.active = false;
         this.fail_ani_view.active = false;
         this.question_content.removeAllChildren()

+ 4 - 2
assets/script/run/ui/sound_text_content.ts

@@ -73,11 +73,13 @@ export class sound_text_content extends Component {
 
     }
 
-    onAudioEnded(){
+    onAudioEnded(isDispatchEvent:boolean=true){
         this.node.off(AudioSource.EventType.STARTED);
         this.node.off(AudioSource.EventType.ENDED);
         this.node.active = false;
-        ClientEvent.dispatchEvent(config.EventRun.WIDGET_FINISH,this.mWidgetId)
+        if(isDispatchEvent) {
+            ClientEvent.dispatchEvent(config.EventRun.WIDGET_FINISH,this.mWidgetId)
+        }
     }
 }