开箱优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user