public void CheckDuplication() { string value = CheckValidation(); if (value == null) { mNickEvent = new CheckNickEvent(new EventDelegate(this, "CheckComplete")); string name = transform.FindChild("InputNick").GetComponent <UIInput> ().value; NetMgr.CheckNickname(name, mNickEvent); } else { DialogueMgr.ShowDialogue(mJoinError, value, DialogueMgr.DIALOGUE_TYPE.Alert, null, null, null, null); } }
public void CheckDuplication() { string value = CheckValidation(); if (value == null) { mNickEvent = new CheckNickEvent(new EventDelegate(this, "CheckComplete")); string name = transform.parent.FindChild("Input").GetComponent <UIInput> ().value; NetMgr.CheckNickname(name, mNickEvent); } else { transform.parent.parent.gameObject.SetActive(false); DialogueMgr.ShowDialogue("변경정보오류", value, DialogueMgr.DIALOGUE_TYPE.Alert, null, null, null, null); } }
public void Submit() { transform.FindChild("Box").FindChild("Input").GetComponent <UIInput>().value = transform.FindChild("Box").FindChild("Input").GetComponent <UIInput>().value.Trim(); mNick = transform.FindChild("Box").FindChild("Input").GetComponent <UIInput>().value; if (mNick.Equals(UserMgr.UserInfo.nick)) { DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrSameNick"), DialogueMgr.DIALOGUE_TYPE.Alert, null); return; } mCheckEvent = new CheckNickEvent(new EventDelegate(ReceivedChecking)); NetMgr.CheckNickname(mNick, mCheckEvent); }
public void OnClick() { // DialogueMgr.ShowDialogue("title", "body", DialogueMgr.DIALOGUE_TYPE.Alert, null); mNickEvent = new CheckNickEvent(new EventDelegate(ReceivedNick)); string nick = transform.parent.FindChild("Input").FindChild("Label").GetComponent <UILabel>().text; //check text length n default text if (nick.Equals(transform.parent.FindChild("Input").GetComponent <UIInput>().defaultText)) { DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrCheckNick"), UtilMgr.GetLocalText("StrNickInput"), DialogueMgr.DIALOGUE_TYPE.Alert, null); return; } else if (nick.Length < 5) { DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrCheckNick"), UtilMgr.GetLocalText("StrNickShort"), DialogueMgr.DIALOGUE_TYPE.Alert, null); return; } NetMgr.CheckNickname(nick, mNickEvent); }