void onEnterClick() { if (curServerData == null) { return; } if (curServerData.srv_status == 5) { //服务器维护中 msg.show(true, ContMgr.getOutGameCont("debug3")); } else { bt.interactable = false; btn_look.SetActive(false); PlayeLocalInfo.saveInt(PlayeLocalInfo.LOGIN_SERVER_SID, curServerData.sid); LGPlatInfo.inst.sendLogin(curServerData.login_url); //if (debug.instance != null) // debug.instance.showMsg(ContMgr.getOutGameCont("debug1")); if (Application.platform == RuntimePlatform.Android) { AndroidPlotformSDK.ANDROID_HIDE_STATUSBAR(); } } }
public override void init() { inText(); if (createChaSxml == null) { createChaSxml = XMLMgr.instance.GetSXML("creat_character"); } fg = getGameObjectByPath("fg"); fg.SetActive(true); if (debug.instance != null) { debug.instance.showMsg(ContMgr.getOutGameCont("debug2")); } fg.GetComponent <RectTransform>().sizeDelta = new Vector2(Baselayer.uiWidth, Baselayer.uiHeight); InitUI(); }