Esempio n. 1
0
    public void UpdateHitterItem(JoinQuizInfo quizInfo)
    {
//		List<GameObject>list = mMatchPlaying.GetComponent<ScriptMatchPlaying>().mQuizListItems;
        ScriptItemHitterHighlight[] hitterArr = mMatchPlaying.GetComponent <ScriptMatchPlaying>()
                                                .mList.GetComponentsInChildren <ScriptItemHitterHighlight>();
        foreach (ScriptItemHitterHighlight hitterItem in hitterArr)
        {
//			ScriptItemHitterHighlight hitterItem = item.GetComponent<ScriptItemHitterHighlight>();
            if (hitterItem != null &&
                hitterItem.mQuizInfo.quizListSeq == quizInfo.QuizListSeq)
            {
                if (hitterItem.mQuizInfo.resp == null)
                {
                    hitterItem.mQuizInfo.resp = new List <QuizRespInfo>();
                }

                QuizRespInfo respInfo = new QuizRespInfo();
                respInfo.respValue = quizInfo.SelectValue;
                hitterItem.mQuizInfo.resp.Add(respInfo);

                hitterItem.SetQuizResult(hitterItem.mQuizInfo);
                break;
            }
        }
    }
Esempio n. 2
0
    void SetConfirm()
    {
        //send to server
        //param={%22memSeq%22:423%20,%22gameSeq%22:1216%20,%22quizListSeq%22:9%20,%22qzType%22:1%20,%22useCardNo%22:140300988901%20,%22betPoint%22:%22100%22%20,%22item%22:1000%20,%22selectValue%22:%221%22%20,%22extendValue%22:%220%22%20}&type=spos&id=gameSposQuizJoin
        JoinQuizInfo joinInfo = new JoinQuizInfo();

        joinInfo.GameSeq     = UserMgr.Schedule.gameSeq;
        joinInfo.MemSeq      = UserMgr.UserInfo.memSeq;
        joinInfo.QuizListSeq = QuizMgr.QuizInfo.quizListSeq;
        joinInfo.QzType      = GetQzType();
        joinInfo.UseCardNo   = 0;
        joinInfo.BetPoint    = mLblUse.text;
        joinInfo.Item        = 1000;
        joinInfo.SelectValue = "" + QuizMgr.QuizInfo.order [GetIndex(mNameSelectedBtn)].orderSeq;
        joinInfo.ExtendValue = "0";
//		mJoinQuizEvent = new JoinQuizEvent(new EventDelegate(this, "CompleteSending"));
//		NetMgr.JoinQuiz (joinInfo, mJoinQuizEvent);
        transform.parent.GetComponent <ScriptTF_Betting> ().mListJoin.Add(joinInfo);
        double userGoldenBall = double.Parse(UserMgr.UserInfo.userGoldenBall)
                                - double.Parse(joinInfo.BetPoint);

        UserMgr.UserInfo.userGoldenBall = "" + userGoldenBall;

        CompleteSending();
    }
    public void Init(JoinQuizInfo joinInfo)
    {
        //		UIDragScrollView[] drag = transform.FindChild("Scroll View").FindChild("Button").GetComponents<UIDragScrollView>();
        //		drag[0].scrollView = transform.parent.GetComponent<UIScrollView>();
        //		drag[1].scrollView = transform.FindChild("Scroll View").GetComponent<UIScrollView>();
        //		drag[1].scrollView = null;
        //		transform.localPosition = Vector3.zero;

        IsLock = false;
        IsChosen = false;
        mJoinInfo = joinInfo;
        mJoinInfo.checkValue = -1;
        SetToNone();
        Choice mChoice = Choice.None;

        transform.FindChild("Scroll View").GetComponent<UICenterOnChild>().onCenter = OnCenter;

        foreach(CurrentLineupInfo.ForecastInfo forecast in
                transform.root.FindChild("LiveBingo").GetComponent<LiveBingo>().mLineupResponse.data.forecast){
            if(mJoinInfo.playerId == forecast.playerId){
                if(forecast.myValue == 0){
                    mJoinInfo.checkValue = 0;
                    SetToBase();
                } else if(forecast.myValue == 1){
                    mJoinInfo.checkValue = 1;
                    SetToOut();
                }
                break;
            }
        }
    }
    public JoinQuizRequest(JoinQuizInfo joinInfo)
    {
        Add ("memSeq", UserMgr.UserInfo.memSeq);
        Add ("gameId", joinInfo.gameId);
        Add ("bingoId", joinInfo.bingoId);
        Add ("inningNumber", joinInfo.inningNumber);
        Add ("inningHalf", joinInfo.inningHalf);
        Add ("battingOrder", joinInfo.battingOrder);
        Add ("playerId", joinInfo.playerId);
        Add ("checkValue", joinInfo.checkValue);

        //		mParams = JsonFx.Json.JsonWriter.Serialize (this);
        mDic = this;
    }
Esempio n. 5
0
    public JoinQuizRequest(JoinQuizInfo joinInfo)
    {
        Add("memSeq", UserMgr.UserInfo.memSeq);
        Add("gameId", joinInfo.gameId);
        Add("bingoId", joinInfo.bingoId);
        Add("inningNumber", joinInfo.inningNumber);
        Add("inningHalf", joinInfo.inningHalf);
        Add("battingOrder", joinInfo.battingOrder);
        Add("playerId", joinInfo.playerId);
        Add("checkValue", joinInfo.checkValue);

//		mParams = JsonFx.Json.JsonWriter.Serialize (this);
        mDic = this;
    }
Esempio n. 6
0
    public JoinQuizRequest(JoinQuizInfo joinInfo)
    {
        Add("memSeq", joinInfo.MemSeq);
        Add("gameSeq", joinInfo.GameSeq);
        Add("quizListSeq", joinInfo.QuizListSeq);
        Add("qzType", joinInfo.QzType);
        Add("useCardNo", joinInfo.UseCardNo);
        Add("betPoint", joinInfo.BetPoint);
        Add("item", joinInfo.Item);
        Add("selectValue", joinInfo.SelectValue);
        Add("extendValue", joinInfo.ExtendValue);

        mParams = JsonFx.Json.JsonWriter.Serialize(this);
    }
Esempio n. 7
0
    public void Init(JoinQuizInfo joinInfo)
    {
//		UIDragScrollView[] drag = transform.FindChild("Scroll View").FindChild("Button").GetComponents<UIDragScrollView>();
//		drag[0].scrollView = transform.parent.GetComponent<UIScrollView>();
//		drag[1].scrollView = transform.FindChild("Scroll View").GetComponent<UIScrollView>();
//		drag[1].scrollView = null;
//		transform.localPosition = Vector3.zero;


        IsLock               = false;
        IsChosen             = false;
        mJoinInfo            = joinInfo;
        mJoinInfo.checkValue = -1;
        SetToNone();
        Choice mChoice = Choice.None;

        transform.FindChild("Scroll View").GetComponent <UICenterOnChild>().onCenter = OnCenter;

        foreach (CurrentLineupInfo.ForecastInfo forecast in
                 transform.root.FindChild("LiveBingo").GetComponent <LiveBingo>().mLineupResponse.data.forecast)
        {
            if (mJoinInfo.playerId == forecast.playerId)
            {
                if (forecast.myValue == 0)
                {
                    mJoinInfo.checkValue = 0;
                    SetToBase();
                }
                else if (forecast.myValue == 1)
                {
                    mJoinInfo.checkValue = 1;
                    SetToOut();
                }
                break;
            }
        }
    }
Esempio n. 8
0
	public static void JoinQuiz(JoinQuizInfo joinInfo, BaseEvent baseEvent)
	{
		Instance.webAPIProcessEvent (new JoinQuizRequest (joinInfo), baseEvent);
	}
Esempio n. 9
0
    public void SetConfirm()
    {
        //send to server
        //param={%22memSeq%22:423%20,%22gameSeq%22:1216%20,%22quizListSeq%22:9%20,%22qzType%22:1%20,%22useCardNo%22:140300988901%20,%22betPoint%22:%22100%22%20,%22item%22:1000%20,%22selectValue%22:%221%22%20,%22extendValue%22:%220%22%20}&type=spos&id=gameSposQuizJoin
        JoinQuizInfo joinInfo = new JoinQuizInfo();

        joinInfo.GameSeq = UserMgr.Schedule.gameSeq;
        joinInfo.MemSeq  = UserMgr.UserInfo.memSeq;
        if (QuizMgr.QuizInfo != null)
        {
            joinInfo.QuizListSeq = QuizMgr.QuizInfo.quizListSeq;
        }
        joinInfo.QzType = GetQzType();
        //double betPoint = 0;//double.Parse(UtilMgr.RemoveThousandSeperator(mLblUse.text));
        joinInfo.BetPoint = "0";

//		Debug.Log("QuizMgr.QuizInfo.order size is "+QuizMgr.QuizInfo.order.Count);
        Debug.Log("QuizMgr.QuizInfo.order [GetIndex(mNameSelectedBtn)].orderSeq : " +
                  QuizMgr.QuizInfo.order [GetIndex(mNameSelectedBtn)].orderSeq);
        if (!ScriptBettingItem.ClickCheck)
        {
            if (QuizMgr.QuizValue != 0)
            {
                joinInfo.SelectValue = "" + QuizMgr.QuizValue.ToString();
            }
        }
        //joinInfo.SelectValue = "" + QuizMgr.QuizInfo.order [GetIndex(mNameSelectedBtn)].orderSeq;

        Debug.Log("mNameSelectedBtn : " + mNameSelectedBtn);
        Debug.Log("joinInfo.SelectValue : " + joinInfo.SelectValue);
        joinInfo.ExtendValue = "0";
//		mJoinQuizEvent = new JoinQuizEvent(new EventDelegate(this, "CompleteSending"));
//		NetMgr.JoinQuiz (joinInfo, mJoinQuizEvent);

        if (mCardInfo != null)
        {
            joinInfo.UseCardNo = mCardInfo.memCardNo;
//			mSbi.SetSelected(mCardInfo);
        }
        else if (mStrategyInfo != null)
        {
            joinInfo.Item = mStrategyInfo.itemId;
//			mSbi.SetSelected(mStrategyInfo);
        }
        else
        {
            joinInfo.Item = 1000;
//			mSbi.SetSelected ();
        }
        //mSbi.SetSelected();

        mTFBetting.GetComponent <ScriptTF_Betting> ().mListJoin.Add(joinInfo);
//		double userGoldenBall = double.Parse (UserMgr.UserInfo.userGoldenBall)
//						- double.Parse (joinInfo.BetPoint);
        //	UserMgr.UserInfo.userGoldenBall = "" + userGoldenBall;

        ClearCardData();

        //SetBtnsDisable();

        InitAmountUse();

        transform.root.GetComponent <AudioSource>().PlayOneShot(mAudioConfirm);

        //UtilMgr.OnBackPressed();
    }
Esempio n. 10
0
    public void InitBtm()
    {
        Transform btm = transform.FindChild("Body").FindChild("Scroll View").FindChild("Btm");

        btm.gameObject.SetActive(true);

        mSortedLineup = new List <PlayerInfo>();
        bool foundLast = false;
        bool isAway    = false;

        if (mLineupResponse.data.inningHalf.Equals("T") &&
            UserMgr.eventJoined.inningState.Equals("ING"))
        {
            isAway = true;
        }
        if (mLineupResponse.data.inningHalf.Equals("B") &&
            UserMgr.eventJoined.inningState.Equals("END"))
        {
            isAway = true;
        }
//		T END, B ING
//		if((mLineupResponse.data.inningHalf.Equals("T")
//		   && UserMgr.eventJoined.inningState.Equals("ING"))
//		   || (mLineupResponse.data.inningHalf.Equals("B")
//		 && UserMgr.eventJoined.inningState.Equals("END"))){
        Debug.Log("isAway : " + isAway);
        if (isAway)
        {
            mPitcher = mLineupResponse.data.home.pit;
            for (int i = 0; i < mLineupResponse.data.away.hit.Count; i++)
            {
                if (mLineupResponse.data.away.hit[i].currentBatter > 0)
                {
                    foundLast = true;
                    for (int j = 0; j < mLineupResponse.data.away.hit.Count; j++)
                    {
//						if(++i >= mLineupResponse.data.away.hit.Count) i = 0;
                        if (i >= mLineupResponse.data.away.hit.Count)
                        {
                            i = 0;
                        }
                        mSortedLineup.Add(mLineupResponse.data.away.hit[i]);
                        i++;
                    }
                    break;
                }
            }
            if (!foundLast)
            {
                for (int j = 0; j < mLineupResponse.data.away.hit.Count; j++)
                {
                    if (j == 0)
                    {
                        mSortedLineup.Add(mLineupResponse.data.away.hit[mLineupResponse.data.away.hit.Count - 1]);
                    }
                    else
                    {
                        mSortedLineup.Add(mLineupResponse.data.away.hit[j - 1]);
                    }
                }
            }
        }
        else
        {
            mPitcher = mLineupResponse.data.away.pit;
            for (int i = 0; i < mLineupResponse.data.home.hit.Count; i++)
            {
                if (mLineupResponse.data.home.hit[i].currentBatter > 0)
                {
                    foundLast = true;
                    for (int j = 0; j < mLineupResponse.data.home.hit.Count; j++)
                    {
//						if(++i >= mLineupResponse.data.home.hit.Count) i = 0;
                        if (i >= mLineupResponse.data.home.hit.Count)
                        {
                            i = 0;
                        }
                        mSortedLineup.Add(mLineupResponse.data.home.hit[i]);
                        i++;
                    }
                    break;
                }
            }
            if (!foundLast)
            {
                for (int j = 0; j < mLineupResponse.data.home.hit.Count; j++)
                {
                    if (j == 0)
                    {
                        mSortedLineup.Add(mLineupResponse.data.home.hit[mLineupResponse.data.away.hit.Count - 1]);
                    }
                    else
                    {
                        mSortedLineup.Add(mLineupResponse.data.home.hit[j - 1]);
                    }
                }
            }
        }

        btm.FindChild("Info").FindChild("BG").FindChild("LblRound").gameObject.SetActive(true);
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").gameObject.SetActive(true);
        if (Localization.language.Equals("English"))
        {
            string roundStr = mLineupResponse.data.inningHalf.Equals("T") ? "Top" : "Bot";
            roundStr += " " + mLineupResponse.data.inningNumber + UtilMgr.GetRoundString(mLineupResponse.data.inningNumber);
            btm.FindChild("Info").FindChild("BG").FindChild("LblRound").GetComponent <UILabel>().text = roundStr;
            btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent <UILabel>().text
                = mPitcher.playerName;
        }
        else
        {
            string roundStr = mLineupResponse.data.inningNumber
                              + (mLineupResponse.data.inningHalf.Equals("T") ? "회초" : "회말");
            btm.FindChild("Info").FindChild("BG").FindChild("LblRound").GetComponent <UILabel>().text = roundStr;
            btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent <UILabel>().text
                = mPitcher.korName;
        }

        int width = btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent <UILabel>().width;

        btm.FindChild("Info").FindChild("BG").FindChild("LblName").FindChild("Label").localPosition = new Vector3(width + 16f, -3f);
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").FindChild("Label").GetComponent <UILabel>()
        .text = "#" + mPitcher.backNumber + " ERA    " + mPitcher.ERA;
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Hand").FindChild("Label").GetComponent <UILabel>()
        .text = mPitcher.throwHand;

        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
        .FindChild("Texture").GetComponent <UITexture>().mainTexture = UtilMgr.GetTextureDefault();
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
        .FindChild("Texture").GetComponent <UITexture>().width = 72;
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
        .FindChild("Texture").GetComponent <UITexture>().height = 90;
        UtilMgr.LoadImage(mPitcher.playerId,
                          btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
                          .FindChild("Texture").GetComponent <UITexture>());

        btm.FindChild("Draggable").GetComponent <UIDraggablePanel2>().RemoveAll();
//		if(IsEnded){
//			ShowGameEnded();
//			return;
//		}
//		UtilMgr.ClearList(btm.FindChild("Draggable"));
        btm.FindChild("Draggable").GetComponent <UIPanel>().clipOffset = new Vector2(0, 50f);
        btm.FindChild("Draggable").localPosition = new Vector3(0, -283f);
        btm.FindChild("Draggable").GetComponent <UIDraggablePanel2>().Init(mSortedLineup.Count, delegate(UIListItem item, int index) {
            Transform button = item.Target.transform.FindChild("Scroll View").FindChild("Button");
            button.FindChild("Photo").FindChild("Hand").FindChild("Label").GetComponent <UILabel>()
            .text      = mSortedLineup[index].batHand;
            string avg = mSortedLineup[index].AVG;
            for (int k = mSortedLineup[index].AVG.Length; k < 5; k++)
            {
                avg += "0";
            }
            button.FindChild("Label").GetComponent <UILabel>()
            .text = "#" + mSortedLineup[index].backNumber + " AVG   " + avg;

            if (Localization.language.Equals("English"))
            {
                button.FindChild("LblName").GetComponent <UILabel>()
                .text = mSortedLineup[index].playerName;
            }
            else
            {
                button.FindChild("LblName").GetComponent <UILabel>()
                .text = mSortedLineup[index].korName;
            }
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent <UITexture>().mainTexture
                = UtilMgr.GetTextureDefault();
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent <UITexture>().width  = 72;
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent <UITexture>().height = 90;
            UtilMgr.LoadImage(mSortedLineup[index].playerId,
                              button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent <UITexture>());

            JoinQuizInfo joinInfo = new JoinQuizInfo();
            joinInfo.gameId       = UserMgr.eventJoined.gameId;
            joinInfo.bingoId      = mBingoId;

            if (mLineupResponse == null)
            {
                return;
            }

            joinInfo.inningNumber = mLineupResponse.data.inningNumber;
            joinInfo.inningHalf   = mLineupResponse.data.inningHalf;
            joinInfo.battingOrder = mSortedLineup[index].battingOrder;
            joinInfo.playerId     = mSortedLineup[index].playerId;
            //
//			joinInfo.checkValue = -1;
//			foreach(CurrentLineupInfo.ForecastInfo forecast in mLineupEvent.Response.data.forecast){
//				if(forecast.battingOrder == joinInfo.battingOrder){
//					joinInfo.checkValue = forecast.myValue;
//					break;
//				}
//			}
            //
            item.Target.GetComponent <ItemBingoList>().Init(joinInfo);

            if (!UserMgr.eventJoined.status.Equals("Scheduled"))
            {
                int lockCnt = 1;
                if (UtilMgr.IsMLB())
                {
                    lockCnt = 2;
                }

                if (index < lockCnt)
                {
                    item.Target.GetComponent <ItemBingoList>().SetToLocking();
                }
            }
        });

        if (UserMgr.eventJoined.status.Equals("Scheduled"))
        {
            transform.root.FindChild("LiveBingo").GetComponent <LiveBingoAnimation>().SetItemBlink(-1);
        }
        else
        {
            transform.root.FindChild("LiveBingo").GetComponent <LiveBingoAnimation>()
            .SetItemBlink(mSortedLineup[0].playerId);
        }


        btm.FindChild("Draggable").GetComponent <UIDraggablePanel2>().ResetPosition();

//		UtilMgr.ClearList(btm.FindChild("Draggable"));
//		float height = 90f;
//		for(int index = 0; index < mSortedLineup.Count; index++){
//			GameObject go = Instantiate(mItemBingoList);
//			go.transform.parent = btm.FindChild("Draggable");
//			go.transform.localScale = new Vector3(1f, 1f, 1f);
//			go.transform.localPosition = new Vector3(0, height);
//			height -= 120f;
//			Transform button = go.transform.FindChild("Scroll View").FindChild("Button");
//			button.FindChild("Photo").FindChild("Hand").FindChild("Label").GetComponent<UILabel>()
//				.text = mSortedLineup[index].batHand;
//			button.FindChild("Label").GetComponent<UILabel>()
//				.text = "#" + mSortedLineup[index].backNumber + " AVG " + mSortedLineup[index].AVG;
//
//			if(Localization.language.Equals("English")){
//				button.FindChild("LblName").GetComponent<UILabel>()
//					.text = mSortedLineup[index].playerName;
//			} else{
//				button.FindChild("LblName").GetComponent<UILabel>()
//					.text = mSortedLineup[index].korName;
//			}
//			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().mainTexture
//				= UtilMgr.GetTextureDefault();
//			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().width = 72;
//			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().height = 90;
//			UtilMgr.LoadImage(mSortedLineup[index].photoUrl,
//			                  button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>());
//
//			JoinQuizInfo joinInfo = new JoinQuizInfo();
//			joinInfo.gameId = UserMgr.eventJoined.gameId;
//			joinInfo.bingoId = mBingoId;
//			joinInfo.inningNumber = mLineupEvent.Response.data.inningNumber;
//			joinInfo.inningHalf = mLineupEvent.Response.data.inningHalf;
//			joinInfo.battingOrder = mSortedLineup[index].battingOrder;
//			joinInfo.playerId = mSortedLineup[index].playerId;
//			go.GetComponent<ItemBingoList>().Init(joinInfo);
//
//			if(index < 2)
//				go.GetComponent<ItemBingoList>().SetToLocking();
//		}
//		btm.FindChild("Draggable").GetComponent<UIScrollView>().ResetPosition();
    }
Esempio n. 11
0
 public static void JoinQuiz(JoinQuizInfo joinInfo, BaseEvent baseEvent)
 {
     Instance.webAPIProcessEvent (new JoinQuizRequest (joinInfo), baseEvent);
 }
Esempio n. 12
0
    public void InitBtm()
    {
        Transform btm = transform.FindChild("Body").FindChild("Scroll View").FindChild("Btm");
        btm.gameObject.SetActive(true);

        mSortedLineup = new List<PlayerInfo>();
        bool foundLast = false;
        bool isAway = false;
        if(mLineupResponse.data.inningHalf.Equals("T")
           && UserMgr.eventJoined.inningState.Equals("ING"))
            isAway = true;
        if(mLineupResponse.data.inningHalf.Equals("B")
           && UserMgr.eventJoined.inningState.Equals("END"))
            isAway = true;
        //		T END, B ING
        //		if((mLineupResponse.data.inningHalf.Equals("T")
        //		   && UserMgr.eventJoined.inningState.Equals("ING"))
        //		   || (mLineupResponse.data.inningHalf.Equals("B")
        //		 && UserMgr.eventJoined.inningState.Equals("END"))){
        Debug.Log("isAway : "+isAway);
        if(isAway){
            mPitcher = mLineupResponse.data.home.pit;
            for(int i = 0; i < mLineupResponse.data.away.hit.Count; i++){
                if(mLineupResponse.data.away.hit[i].currentBatter > 0){
                    foundLast = true;
                    for(int j = 0; j < mLineupResponse.data.away.hit.Count; j++){
        //						if(++i >= mLineupResponse.data.away.hit.Count) i = 0;
                        if(i >= mLineupResponse.data.away.hit.Count) i = 0;
                        mSortedLineup.Add(mLineupResponse.data.away.hit[i]);
                        i++;
                    }
                    break;
                }
            }
            if(!foundLast){
                for(int j = 0; j < mLineupResponse.data.away.hit.Count; j++){
                    if(j == 0)
                        mSortedLineup.Add(mLineupResponse.data.away.hit[mLineupResponse.data.away.hit.Count-1]);
                    else
                        mSortedLineup.Add(mLineupResponse.data.away.hit[j-1]);
                }
            }
        } else{
            mPitcher = mLineupResponse.data.away.pit;
            for(int i = 0; i < mLineupResponse.data.home.hit.Count; i++){
                if(mLineupResponse.data.home.hit[i].currentBatter > 0){
                    foundLast = true;
                    for(int j = 0; j < mLineupResponse.data.home.hit.Count; j++){
        //						if(++i >= mLineupResponse.data.home.hit.Count) i = 0;
                        if(i >= mLineupResponse.data.home.hit.Count) i = 0;
                        mSortedLineup.Add(mLineupResponse.data.home.hit[i]);
                        i++;
                    }
                    break;
                }
            }
            if(!foundLast){
                for(int j = 0; j < mLineupResponse.data.home.hit.Count; j++){
                    if(j == 0)
                        mSortedLineup.Add(mLineupResponse.data.home.hit[mLineupResponse.data.away.hit.Count-1]);
                    else
                        mSortedLineup.Add(mLineupResponse.data.home.hit[j-1]);
                }
            }
        }

        btm.FindChild("Info").FindChild("BG").FindChild("LblRound").gameObject.SetActive(true);
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").gameObject.SetActive(true);
        if(Localization.language.Equals("English")){
            string roundStr = mLineupResponse.data.inningHalf.Equals("T") ? "Top" : "Bot";
            roundStr += " "+mLineupResponse.data.inningNumber + UtilMgr.GetRoundString(mLineupResponse.data.inningNumber);
            btm.FindChild("Info").FindChild("BG").FindChild("LblRound").GetComponent<UILabel>().text = roundStr;
            btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent<UILabel>().text
                = mPitcher.playerName;
        } else{
            string roundStr = mLineupResponse.data.inningNumber
                    + (mLineupResponse.data.inningHalf.Equals("T") ? "회초" : "회말");
            btm.FindChild("Info").FindChild("BG").FindChild("LblRound").GetComponent<UILabel>().text = roundStr;
            btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent<UILabel>().text
                = mPitcher.korName;
        }

        int width = btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent<UILabel>().width;
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").FindChild("Label").localPosition = new Vector3(width+16f, -3f);
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").FindChild("Label").GetComponent<UILabel>()
            .text = "#" + mPitcher.backNumber + " ERA    " + mPitcher.ERA;
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Hand").FindChild("Label").GetComponent<UILabel>()
            .text = mPitcher.throwHand;

        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
            .FindChild("Texture").GetComponent<UITexture>().mainTexture = UtilMgr.GetTextureDefault();
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
            .FindChild("Texture").GetComponent<UITexture>().width = 72;
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
            .FindChild("Texture").GetComponent<UITexture>().height = 90;
                UtilMgr.LoadImage(mPitcher.playerId,
                          btm.FindChild("Info").FindChild("SprCircle").FindChild("Photo").FindChild("Panel")
                          .FindChild("Texture").GetComponent<UITexture>());

        btm.FindChild("Draggable").GetComponent<UIDraggablePanel2>().RemoveAll();
        //		if(IsEnded){
        //			ShowGameEnded();
        //			return;
        //		}
        //		UtilMgr.ClearList(btm.FindChild("Draggable"));
        btm.FindChild("Draggable").GetComponent<UIPanel>().clipOffset = new Vector2(0, 50f);
        btm.FindChild("Draggable").localPosition = new Vector3(0, -283f);
        btm.FindChild("Draggable").GetComponent<UIDraggablePanel2>().Init (mSortedLineup.Count, delegate(UIListItem item, int index) {
            Transform button = item.Target.transform.FindChild("Scroll View").FindChild("Button");
            button.FindChild("Photo").FindChild("Hand").FindChild("Label").GetComponent<UILabel>()
                .text = mSortedLineup[index].batHand;
            string avg = mSortedLineup[index].AVG;
            for(int k = mSortedLineup[index].AVG.Length; k < 5; k++)
                avg += "0";
            button.FindChild("Label").GetComponent<UILabel>()
                .text = "#" + mSortedLineup[index].backNumber + " AVG   " + avg;

            if(Localization.language.Equals("English")){
                button.FindChild("LblName").GetComponent<UILabel>()
                    .text = mSortedLineup[index].playerName;
            } else{
                button.FindChild("LblName").GetComponent<UILabel>()
                    .text = mSortedLineup[index].korName;
            }
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().mainTexture
                = UtilMgr.GetTextureDefault();
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().width = 72;
            button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().height = 90;
            UtilMgr.LoadImage(mSortedLineup[index].playerId,
                              button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>());

            JoinQuizInfo joinInfo = new JoinQuizInfo();
            joinInfo.gameId = UserMgr.eventJoined.gameId;
            joinInfo.bingoId = mBingoId;

            if(mLineupResponse == null) return;

            joinInfo.inningNumber = mLineupResponse.data.inningNumber;
            joinInfo.inningHalf = mLineupResponse.data.inningHalf;
            joinInfo.battingOrder = mSortedLineup[index].battingOrder;
            joinInfo.playerId = mSortedLineup[index].playerId;
            //
        //			joinInfo.checkValue = -1;
        //			foreach(CurrentLineupInfo.ForecastInfo forecast in mLineupEvent.Response.data.forecast){
        //				if(forecast.battingOrder == joinInfo.battingOrder){
        //					joinInfo.checkValue = forecast.myValue;
        //					break;
        //				}
        //			}
            //
            item.Target.GetComponent<ItemBingoList>().Init(joinInfo);

            if(!UserMgr.eventJoined.status.Equals("Scheduled")){
                int lockCnt = 1;
                if(UtilMgr.IsMLB()){
                    lockCnt = 2;
                }

                if(index < lockCnt){
                    item.Target.GetComponent<ItemBingoList>().SetToLocking();
                }

            }
        });

        if(UserMgr.eventJoined.status.Equals("Scheduled")){
            transform.root.FindChild("LiveBingo").GetComponent<LiveBingoAnimation>().SetItemBlink(-1);
        } else
            transform.root.FindChild("LiveBingo").GetComponent<LiveBingoAnimation>()
                .SetItemBlink(mSortedLineup[0].playerId);

        btm.FindChild("Draggable").GetComponent<UIDraggablePanel2>().ResetPosition();

        //		UtilMgr.ClearList(btm.FindChild("Draggable"));
        //		float height = 90f;
        //		for(int index = 0; index < mSortedLineup.Count; index++){
        //			GameObject go = Instantiate(mItemBingoList);
        //			go.transform.parent = btm.FindChild("Draggable");
        //			go.transform.localScale = new Vector3(1f, 1f, 1f);
        //			go.transform.localPosition = new Vector3(0, height);
        //			height -= 120f;
        //			Transform button = go.transform.FindChild("Scroll View").FindChild("Button");
        //			button.FindChild("Photo").FindChild("Hand").FindChild("Label").GetComponent<UILabel>()
        //				.text = mSortedLineup[index].batHand;
        //			button.FindChild("Label").GetComponent<UILabel>()
        //				.text = "#" + mSortedLineup[index].backNumber + " AVG " + mSortedLineup[index].AVG;
        //
        //			if(Localization.language.Equals("English")){
        //				button.FindChild("LblName").GetComponent<UILabel>()
        //					.text = mSortedLineup[index].playerName;
        //			} else{
        //				button.FindChild("LblName").GetComponent<UILabel>()
        //					.text = mSortedLineup[index].korName;
        //			}
        //			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().mainTexture
        //				= UtilMgr.GetTextureDefault();
        //			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().width = 72;
        //			button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>().height = 90;
        //			UtilMgr.LoadImage(mSortedLineup[index].photoUrl,
        //			                  button.FindChild("Photo").FindChild("Panel").FindChild("Texture").GetComponent<UITexture>());
        //
        //			JoinQuizInfo joinInfo = new JoinQuizInfo();
        //			joinInfo.gameId = UserMgr.eventJoined.gameId;
        //			joinInfo.bingoId = mBingoId;
        //			joinInfo.inningNumber = mLineupEvent.Response.data.inningNumber;
        //			joinInfo.inningHalf = mLineupEvent.Response.data.inningHalf;
        //			joinInfo.battingOrder = mSortedLineup[index].battingOrder;
        //			joinInfo.playerId = mSortedLineup[index].playerId;
        //			go.GetComponent<ItemBingoList>().Init(joinInfo);
        //
        //			if(index < 2)
        //				go.GetComponent<ItemBingoList>().SetToLocking();
        //		}
        //		btm.FindChild("Draggable").GetComponent<UIScrollView>().ResetPosition();
    }