Browse Source

修改编辑器

lan 11 months ago
parent
commit
27cde7fde6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      assets/script/ui/Editor.ts

+ 1 - 0
assets/script/ui/Editor.ts

@@ -555,6 +555,7 @@ export default class Editor extends cc.Component {
         this.initStageData(json)
         let parentNode = this.getGameNode()
         let teacherGuideUI = parentNode.getComponent(TeacherGuideUI)
+        teacherGuideUI.teacherMode = true
         teacherGuideUI.initCurPart(this.gameType, this.semeID, this.gameID, this.partID)
         if (Object.keys(json.gameJson).length > 0) {
             teacherGuideUI.initCfg(json.gameJson)