public void ChangeGestButton() { //Debug.Log ("Email : " + Email.value); //Debug.Log ("Pwd1 : " + Pwd1.value); //Debug.Log ("Pwd2 : " + Pwd2.value); if (Pwd1.value.Length < 4 || Pwd2.value.Length < 4) { DialogueMgr.ShowDialogue("가입정보오류", "비밀번호는 4자리 이상 입려해주세요.", DialogueMgr.DIALOGUE_TYPE.Alert, null); } else if (Pwd1.value.Length != Pwd2.value.Length) { DialogueMgr.ShowDialogue("가입정보오류", "비밀번호가 서로 다릅니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null); } LoginInfo loginInfo = new LoginInfo(); UpdateMemberInfoEvent event1 = null; loginInfo.memSeq = UserMgr.UserInfo.memSeq; loginInfo.memberEmail = Email.value; loginInfo.memberPwd = Pwd2.value; loginInfo.memUID = ""; loginInfo.DeviceID = ""; event1 = new UpdateMemberInfoEvent(new EventDelegate(this, "Set")); NetMgr.ChangGestInfo(loginInfo, event1, UtilMgr.IsTestServer(), false); }
public void GotUID() { LoginInfo loginInfo = new LoginInfo(); loginInfo.teamCode = mTeamCode; if (Application.platform == RuntimePlatform.IPhonePlayer) { loginInfo.DeviceID = IOSMgr.GetMsg(); } else { loginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier; } if (Application.platform == RuntimePlatform.Android) { loginInfo.osType = 1; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { loginInfo.osType = 2; } else if (Application.platform == RuntimePlatform.OSXEditor) { loginInfo.osType = 1; } NetMgr.LoginGuest(loginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); }
void DialogueHandler(DialogueMgr.BTNS btn) { if (btn == DialogueMgr.BTNS.Btn1) { JoinMemberInfo memInfo = new JoinMemberInfo(); UpdateMemberInfoEvent event1 = null; //memInfo.Photo; //memInfo.MemberID memInfo.MemberName = SetName; memInfo.MemberEmail = UserMgr.UserInfo.memberEmail; Debug.Log("send Team code : " + SetTeamCode); memInfo.FavoBB = SetTeamCode; if (GalleryCheck) { memInfo.MemImage = UserMgr.UserInfo.memberEmail; if (Setimagebyte == null) { Setimagebyte = UserMgr.UserInfo.Textures.EncodeToPNG(); } memInfo.PhotoBytes = Setimagebyte; Setimagebyte = null; GalleryCheck = false; } event1 = new UpdateMemberInfoEvent(new EventDelegate(this, "Set")); NetMgr.UpdateMemberInfo(memInfo, event1, UtilMgr.IsTestServer(), false); } }
public void GotUID() { LoginInfo loginInfo = new LoginInfo(); if (Application.platform == RuntimePlatform.IPhonePlayer) { loginInfo.DeviceID = IOSMgr.GetMsg(); } else { loginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier; } if (Application.platform == RuntimePlatform.Android) { loginInfo.osType = 1; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { loginInfo.osType = 2; } else if (Application.platform == RuntimePlatform.OSXEditor) { loginInfo.osType = 1; } mLoginEvent = new LoginEvent(new EventDelegate(this, "LoginComplete")); NetMgr.LoginGuest(loginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); }
public void Init() { // if(Application.platform == RuntimePlatform.Android){ // transform.FindChild ("ContainerBtns").FindChild("BtnLogin").localPosition // = new Vector3(-160f, -450f, 0); // transform.FindChild ("ContainerBtns").FindChild("BtnJoin").localPosition // = new Vector3(160f, -450f, 0); // transform.FindChild ("ContainerBtns").FindChild("BtnGuest").gameObject.SetActive(false); // } else{ // transform.FindChild ("ContainerBtns").FindChild("BtnLogin").localPosition // = new Vector3(-220f, -450f, 0); // transform.FindChild ("ContainerBtns").FindChild("BtnJoin").localPosition // = new Vector3(0, -450f, 0); if (Application.platform == RuntimePlatform.IPhonePlayer) { transform.FindChild("ContainerBtns").FindChild("BtnGuest").gameObject.SetActive(true); mLbliOS.SetActive(true); } else { transform.FindChild("ContainerBtns").FindChild("BtnGuest").gameObject.SetActive(false); mLbliOS.SetActive(false); } transform.FindChild("ContainerBtns").gameObject.SetActive(false); transform.FindChild("WindowEmail").gameObject.SetActive(false); transform.FindChild("FormJoin").gameObject.SetActive(false); transform.FindChild("FormJoin2").gameObject.SetActive(false); transform.FindChild("SelectTeam").gameObject.SetActive(false); transform.FindChild("Certification").gameObject.SetActive(false); transform.FindChild("Terms").gameObject.SetActive(false); transform.FindChild("SprLogo").gameObject.SetActive(true); // CheckPreference (); mVersionEvent = new CheckVersionEvent(new EventDelegate(this, "ReceivedVersion")); NetMgr.CheckVersion(mVersionEvent, UtilMgr.IsTestServer()); if (UtilMgr.IsTestServer()) { transform.FindChild("SprLogo").FindChild("LblTest").gameObject.SetActive(true); // transform.FindChild ("SprLogo").FindChild("LblTest").GetComponent<UILabel>().text += transform.FindChild("SprLogo").FindChild("LblTest").GetComponent <UILabel>().text = "Test Ver. " + #if (UNITY_EDITOR) UnityEditor.PlayerSettings.bundleVersion; #elif (UNITY_ANDROID) Application.version; #else Application.version; #endif } }
void DoLogin() { if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.DeviceID = IOSMgr.GetMsg(); } Debug.Log("ID is " + mLoginInfo.DeviceID); // NetMgr.DoLogin (mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); mLoginEvent = new LoginEvent(new EventDelegate(ReceivedLogin)); NetMgr.LoginGuest(mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); }
public string ToRequestString() { // string str = mParam + "key=" + Constants.NANOO_API_KEY; // string str = "key=" + Constants.NANOO_API_KEY; // string str = "http://partner.liveball.kr/comu/nanoo.php"; string str = ""; if (UtilMgr.IsTestServer()) { if (mType == API_TYPE.EVENT) { str = Constants.TEST_EVENT_URL; } else { str = Constants.TEST_NOTICE_URL; if (Application.platform == RuntimePlatform.IPhonePlayer) { str += "/nanoo/2"; } else { str += "/nanoo/1"; } } } else { if (mType == API_TYPE.EVENT) { str = Constants.EVENT_URL; } else { str = Constants.NOTICE_URL; if (Application.platform == RuntimePlatform.IPhonePlayer) { str += "/nanoo/2"; } else { str += "/nanoo/1"; } } } return(str); }
public void SetMemberInfoOut() { JoinMemberInfo memInfo = new JoinMemberInfo(); UpdateMemberInfoEvent event1 = null; //memInfo.Photo; //memInfo.MemberID memInfo.MemberName = SetName; memInfo.MemberEmail = UserMgr.UserInfo.memberEmail; Debug.Log("send Team code : " + SetTeamCode); memInfo.FavoBB = SetTeamCode; if (GalleryCheck) { memInfo.MemImage = UserMgr.UserInfo.memberEmail; memInfo.PhotoBytes = Setimagebyte; GalleryCheck = false; } event1 = new UpdateMemberInfoEvent(new EventDelegate(this, "Set")); NetMgr.UpdateMemberInfo(memInfo, event1, UtilMgr.IsTestServer(), false); }
public void DoLogin() { if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.DeviceID = IOSMgr.GetMsg(); } Debug.Log("ID is " + mLoginInfo.DeviceID); // NetMgr.DoLogin (mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); if (Application.platform == RuntimePlatform.Android) { mLoginInfo.osType = 1; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.osType = 2; } else if (Application.platform == RuntimePlatform.OSXEditor) { mLoginInfo.osType = 1; } NetMgr.LoginGuest(mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); }
void DialogueHandler(DialogueMgr.BTNS btn) { if (btn == DialogueMgr.BTNS.Btn1) { JoinMemberInfo memInfo = new JoinMemberInfo(); UpdateMemberInfoEvent event1 = null; //memInfo.Photo; //memInfo.MemberID memInfo.MemberName = SetName; memInfo.MemberEmail = UserMgr.UserInfo.memberEmail; Debug.Log("send Team code : " + SetTeamCode); memInfo.FavoBB = SetTeamCode; if (GalleryCheck) { memInfo.MemImage = UserMgr.UserInfo.memberEmail; memInfo.PhotoBytes = Setimagebyte; GalleryCheck = false; } event1 = new UpdateMemberInfoEvent(new EventDelegate(this, "Set")); NetMgr.UpdateMemberInfo(memInfo, event1, UtilMgr.IsTestServer(), false); SettingPage.GetComponent <ProfileSetting>().Save(); } }
// Use this for initialization void Awake() { // GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY); // GoogleIAB.purchaseProduct( "ruby_50", "payload that gets stored and returned" ); IsTest = UtilMgr.IsTestServer(); }