1234567891011121314151617181920212223242526272829303132333435 |
- const { ccclass } = cc._decorator;
- @ccclass
- export default class auto_obtainView extends cc.Component {
- obtainView: cc.Node;
- mask: cc.Node;
- bg: cc.Node;
- collect: cc.Node;
- close: cc.Node;
- content: cc.Node;
- option: cc.Node;
- gou1: cc.Node;
- hook: cc.Node;
- gou2: cc.Node;
- btn_double: cc.Node;
- icon_get: cc.Node;
- public static URL:string = "db://assets/resources/prefab/Interface/obtainView.prefab"
- onLoad () {
- this.obtainView = this.node
- this.mask = this.obtainView.getChildByName("mask");
- this.bg = this.obtainView.getChildByName("bg");
- this.collect = this.bg.getChildByName("collect");
- this.close = this.bg.getChildByName("close");
- this.content = this.bg.getChildByName("content");
- this.option = this.bg.getChildByName("option");
- this.gou1 = this.option.getChildByName("gou1");
- this.hook = this.gou1.getChildByName("hook");
- this.gou2 = this.option.getChildByName("gou2");
- this.btn_double = this.bg.getChildByName("btn_double");
- this.icon_get = this.btn_double.getChildByName("icon_get");
- }
- }
|