예제 #1
0
 public void CreateNickname()
 {
     ConnectManager.IsExistNick(UIIF_NickName.text, r => {
         if (r.result > 0)
         {
             UIIF_Text.text = "이미 존재하는 닉입니다.";
         }
         else
         {
             ConnectManager.CreateNick(UIIF_NickName.text, r2 =>
             {
                 if (r2.result == 1)
                 {
                     UIIF_Text.text = "닉을 생성/수정 했습니다.";
                     ConnectManager.GetNick(r3 =>
                     {
                         UIIF_Nickname.text = r3.nickname;
                         ConnectManager.VisitCheck(r3.nickname, vc => { });
                     });
                 }
                 else
                 {
                     UIIF_Text.text = "닉을 생성하지 못했습니다.";
                 }
             });
         }
     });
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        ConnectManager.GetNick(r =>
        {
            if (r.result == 1)
            {
                UIIF_Nickname.text = r.nickname;
                ConnectManager.VisitCheck(r.nickname, vc => { });   //방문 체크
            }
        });

        gameplayWhy.options.Clear();
        ConnectManager.GetExhibitionList(r =>
        {
            if (r.result == 1)
            {
                gamePlayIdxs.Clear();
                for (int i = 0; i < r.exhibitionlists.Length; i++)
                {
                    gameplayWhy.options.Add(new Dropdown.OptionData(r.exhibitionlists[i].title));
                    gamePlayIdxs.Add(int.Parse(r.exhibitionlists[i].idx)); //IDX저장
                }
            }
        });
    }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     ConnectManager.GetNick(r =>
     {
         if (r.result == 1)
         {
             UI_Nickname.text = r.nickname;
             UI_Pushmsg.value = r.pushmsg;
             ConnectManager.VisitCheck(r.nickname, vc => { });   //방문 체크
         }
     });
 }
예제 #4
0
 private void Start()
 {
     ConnectManager.GetNick(r =>
     {
         if (r.result == 1)
         {
             UIIF_Nickname.text = r.nickname;
             ConnectManager.VisitCheck(r.nickname, vc => { });   //방문 체크
         }
         else
         {
             UIIF_Nickname.text = "닉네임을 생성하지 않았음";
         }
     });
 }