验证中...
Languages: JavaScript
Categories: JavaScript 工具
Latest update 2018-12-09 10:36
gistfile1.txt
Raw Copy
cc.Class({
extends: cc.Component,
properties: {
Login_loginButton: {
default: null,
type: cc.Node
},
Login_registerButton: {
default: null,
type: cc.Node
},
Register_registerButton: {
default: null,
type: cc.Node
},
Register_cancelButton: {
default: null,
type: cc.Node
},
},
// LIFE-CYCLE CALLBACKS:
onLoad: function () {
this.Login_registerButton.on('touchend',function (event) {
cc.director.loadScene('Regist');
//登录界面->注册界面
},this);
// this.Login_loginButton.on('touchend',function (event) {
// cc.director.loadScene('game');
//console.log("跳转到主菜单页面。。。")
//跳转到游戏界面因未做完所以注释暂不实现
//},this);
this.Register_registerButton.on('touchend',function (event) {
cc.director.loadScene('LoginRegister');
//注册成功->登录界面
},this);
this.Register_cancelButton.on('touchend',function (event) {
cc.director.loadScene('LoginRegister');
//取消注册->登录界面
},this);
},

Comment list( 0 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025