diff --git a/assets/Script/SceneAdapter.ts b/assets/Script/SceneAdapter.ts index 83a056a..a3b8ed9 100644 --- a/assets/Script/SceneAdapter.ts +++ b/assets/Script/SceneAdapter.ts @@ -9,7 +9,7 @@ const { ccclass, menu } = cc._decorator; @ccclass @menu('Comp/SceneAdapter') export default class SceneAdapter extends cc.Component { - protected onLoad() { + protected start() { let cvs = this.node.getComponent(cc.Canvas); if (cvs === null) { cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`);