mirror of
https://github.com/szrpf/SceneAdapterDemo
synced 2024-12-25 11:18:57 +00:00
v1.4
This commit is contained in:
parent
3f3ee943a4
commit
b5e019f7b8
@ -9,7 +9,7 @@ const { ccclass, menu } = cc._decorator;
|
|||||||
@ccclass
|
@ccclass
|
||||||
@menu('Comp/SceneAdapter')
|
@menu('Comp/SceneAdapter')
|
||||||
export default class SceneAdapter extends cc.Component {
|
export default class SceneAdapter extends cc.Component {
|
||||||
protected onLoad() {
|
protected start() {
|
||||||
let cvs = this.node.getComponent(cc.Canvas);
|
let cvs = this.node.getComponent(cc.Canvas);
|
||||||
if (cvs === null) {
|
if (cvs === null) {
|
||||||
cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`);
|
cc.warn(`节点${this.node.name}没有cc.Canvas组件, SceneAdapter添加失败!`);
|
||||||
|
Loading…
Reference in New Issue
Block a user