示例#1
0
 public void CheckNameRes(LogicRes res, string name)
 {
     if (res == LogicRes.CheckName_Success)
     {
         IsCreateNameOver = true;
     }
     else if (res == LogicRes.CheckName_Error)
     {
         GameApp.Instance.CommonHintDlg.OpenHintBox("玩家昵称重复不可用!请修改后再试。");
     }
 }
示例#2
0
 /// <summary> 检测玩家名结果 </summary>
 public void CheckNameRes(LogicRes res)
 {
     Debug.Log("检测玩家名 结果[" + res + "]");
     if (res == LogicRes.CheckName_Success)
     {
         GameApp.SendMsg.SetPlayerName(PlayerNameInp.value);
     }
     else if (res == LogicRes.CheckName_Error)
     {
         GameApp.Instance.CommonHintDlg.OpenHintBox("新角色名不可用!");
     }
 }
示例#3
0
    /// <summary> 修改玩家名结果 </summary>
    public void ModifNameRes(LogicRes res)
    {
        Debug.Log("设置玩家名 结果[" + res + "]");
        if (res == LogicRes.CheckName_Success)
        {
            PlayerName.text = PlayerNameInp.value;
            GameApp.Instance.PlayerData.m_player_name = PlayerNameInp.value;
            GameApp.Instance.MainPlayerData.Name      = PlayerNameInp.value;

            GameApp.SendMsg.GMOrder("AddItem 1000 -200");

            GameApp.Instance.CommonHintDlg.OpenHintBox("角色名已成功修改为“" + PlayerNameInp.value + "”!");
        }
        else
        {
            GameApp.Instance.CommonHintDlg.OpenHintBox("更改角色名失败!");
        }
    }