cc.Class({ extends: cc.Component, properties: { //contract ContractBG:{ default :null, type :cc.Node }, ContractConfirmBTN:{ default :null, type :cc.Node }, ContractCancelBTN:{ default :null, type :cc.Node }, CompanyNameEditbox:{ default :null, type :cc.EditBox }, CEONameEditbox:{ default :null, type :cc.EditBox }, // vc dialog VC:{ default :null, type :cc.Node }, DialogBG:{ default :null, type :cc.Node }, DialogName:{ default :null, type :cc.Node }, DialogConversation:{ default :null, type :cc.Node }, Dialog:{ default :null, type :cc.Node }, }, Cancel:function() { //hide contract this.ContractBG.active=false; this.ContractConfirmBTN.active=false; this.ContractCancelBTN.active=false; this.CompanyNameEditbox.active=false; this.CEONameEditbox.active=false; //show vc dialog this.VC.active=true; this.DialogBG.active=true; this.DialogName.active=true; this.DialogConversation.active=true; var DialogConversationLabel = this.DialogConversation.getComponent(cc.Label); DialogConversationLabel.string = '什么!!!?别这么快拒绝我,你再好好考虑考虑下?'; var DialogScript = this.Dialog.getComponent("Dialog"); DialogScript.EnableTouch = true; } });