future 11 miesięcy temu
rodzic
commit
85fe86f09d

+ 6 - 2
assets/script/edit/sound_item.ts

@@ -77,7 +77,9 @@ export class sound_item extends base_res {
             }
       
         }else{
-            this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
+            if(this.btn_play) {
+                this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
+            }
         }
     }
 
@@ -86,7 +88,9 @@ export class sound_item extends base_res {
     }
 
     onAudioEnded(){
-        this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
+        if(this.btn_play) {
+            this.btn_play.getComponent(Sprite).spriteFrame = this.sf_pause
+        }
     }
 }
 

+ 1 - 2
assets/script/edit/uiWidget/Text_Sound.ts

@@ -37,8 +37,7 @@ export class Text_Sound extends Component {
     }
 
     public updateView(data:att_text_sound_data){
-
-        console.log("Text_Sound",data)
+        // console.log("Text_Sound",data)
         this.m_data = data;
 
         if(this.m_data.text.length<=0){