mirror of
				https://github.com/szrpf/DataBoardDemo.git
				synced 2025-10-31 19:35:38 +00:00 
			
		
		
		
	Signed-off-by: szrpf <27185709@qq.com>
This commit is contained in:
		| @@ -146,11 +146,11 @@ export default class DataBoard extends cc.Component { | ||||
|     private monitorComp: cc.Component = null; | ||||
|  | ||||
|     protected onLoad() { | ||||
|         this.boardNode = this.node.getChildByName('DataBoard'); | ||||
|         if (!CC_EDITOR && !window['DATABOARD']) { | ||||
|             this.destroy(); | ||||
|             return; | ||||
|         } | ||||
|         this.boardNode = this.node.getChildByName('DataBoard'); | ||||
|         if (cc.isValid(this.boardNode)) { | ||||
|             this.boardNode.removeFromParent(); | ||||
|             this.boardNode.destroy(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user