1234567891011121314151617181920212223242526 |
- import { GameMng } from "../GameMng";
- import { UIButton } from "./UIButton";
- import GBaseUI from "./GBaseUI";
- import { UIManager } from "./UIManager";
- import { _decorator,Node } from "cc";
- const {ccclass, property} = _decorator;
- @ccclass
- export default class UISetting extends GBaseUI {
- @property(Node)
- btnClose: Node = null;
- static Show(parent?:any){
- UIManager.AddPrefab(GameMng.Instance.uisetting,parent);
- }
- start () {
- UIButton.BindClick(this.btnClose,()=>{
- this.closeUI();
- },this);
- }
-
- }
|