1234567891011121314151617181920212223242526272829 |
- const { ccclass } = cc._decorator;
- @ccclass
- export default class auto_shopView extends cc.Component {
- shopView: cc.Node;
- mask: cc.Node;
- bg: cc.Node;
- btn: cc.Node;
- icon: cc.Node;
- info: cc.Node;
- close: cc.Node;
- time: cc.Node;
- public static URL:string = "db://assets/resources/prefab/Interface/shopView.prefab"
- onLoad () {
- this.shopView = this.node
- this.mask = this.shopView.getChildByName("mask");
- this.bg = this.shopView.getChildByName("bg");
- this.btn = this.bg.getChildByName("btn");
- this.icon = this.btn.getChildByName("icon");
- this.info = this.bg.getChildByName("info");
- this.close = this.bg.getChildByName("close");
- this.time = this.bg.getChildByName("time");
- }
- }
|