mirror of
https://github.com/szrpf/SceneAdapterDemo
synced 2024-12-24 10:48:49 +00:00
v1.4
This commit is contained in:
parent
3f3ee943a4
commit
b5e019f7b8
@ -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添加失败!`);
|
||||
|
Loading…
Reference in New Issue
Block a user