예제 #1
0
    void CheckAndJoinQuiz()
    {
        transform.FindChild("TopInfoItem").GetComponent <ScriptTopInfoItem>().SetVSInfo(UserMgr.Schedule);

        if (mBetting.GetComponent <ScriptTF_Betting> ().mListJoin.Count > 0)
        {
            Debug.Log("CPCE");
            CPCE = new ContestPresetChangeEvent(new EventDelegate(this, "CompleteJoinQuiz"));

            NetMgr.ContestPresetChange(mBetting.GetComponent <ScriptTF_Betting> ().mListJoin[0].QuizListSeq.ToString(), QuizMgr.QuizValue.ToString(), CPCE);

//			mJoinQuizEvent = new JoinQuizEvent(new EventDelegate(this, "CompleteJoinQuiz"));
//			NetMgr.JoinQuiz (mBetting.GetComponent<ScriptTF_Betting> ().mListJoin[0], mJoinQuizEvent);


//			mBetting.GetComponent<ScriptTF_Betting>().mSprBetting
//				.GetComponent<ScriptBetting>().UpdateHitterItem(
//					mBetting.GetComponent<ScriptTF_Betting> ().mListJoin[0]);
        }
    }