开箱优化

This commit is contained in:
2024-12-19 10:56:51 +08:00
parent d487d985f3
commit f8f8eccd5a
3 changed files with 917 additions and 912 deletions

View File

@@ -21,6 +21,10 @@ export class LuckHomeCompComp extends CCComp {
var prefab: Prefab = oops.res.get(path, Prefab)!;
let box = instantiate(prefab);
box.parent = parent;
// parent.getChildByName("light").active = true;
this.scheduleOnce(()=>{
parent.getChildByName("light").active = false;
}, 0.5)
this.scheduleOnce(()=>{
box.destroy();
}, 0.7)