import UIView from "../../../script/framework/ui/UIView" ; import { LogicEvent , dispatchEnterComplete , LogicType } from "../../../script/common/event/LogicEvent" ; import { BUNDLE_REMOTE } from "../../../script/framework/base/Defines" ; const { ccclass , property } = cc . _decorator ; @ ccclass export default class GameOneView extends UIView { public static getPrefabUrl ( ) { return "prefabs/GameOneView" ; } onLoad ( ) { super . onLoad ( ) ; cc . find ( "goBack" , this . node ) . on ( cc . Node . EventType . TOUCH_END , ( ) => { dispatch ( LogicEvent . ENTER_HALL ) ; } ) ; let icon = cc . find ( "cocos" , this . node ) ; let btnLoad = cc . find ( "loadImg" , this . node ) ; let children = this . node . children ; children . forEach ( element => { cc . log ( element . name ) ; } ) ; btnLoad . on ( cc . Node . EventType . TOUCH_END , ( ) => { } ) ; dispatchEnterComplete ( { type : LogicType . GAME , views : [ this ] } ) ; } }