import { UIButton } from "../../gcommon/UIButton"; import GBaseUI from "../../gcommon/GBaseUI"; import GBoardChess from "./GBoardChess"; import { _decorator ,Component,Label,Node,instantiate} from "cc"; // import GameControl = require('../GameControl'); const {ccclass, property} = _decorator; @ccclass export default class ChessRBSel extends GBaseUI { @property(Node) btred: Node = null; @property(Node) btblack: Node = null; public static selIndex = 0; public getIndex(){ return } start() { UIButton.BindClick(this.btred, () => { ChessRBSel.selIndex = 0; this.node.active=false; GBoardChess.instance.initChessBoard(); }, this); UIButton.BindClick(this.btblack, () => { ChessRBSel.selIndex = 1; this.node.active=false; GBoardChess.instance.initChessBoard(); }, this); } }