public void Init(ScheduleInfo schedule, int index) { mSchedule = schedule; mIndex = index; ActiveAllBtns(); UILabel lblDetail = mLblDetail.GetComponent <UILabel> (); UILabel lblLeftTeam = mLblLeftTeam.GetComponent <UILabel> (); UILabel lblRightTeam = mLblRightTeam.GetComponent <UILabel> (); UILabel lblScore = mLblScore.GetComponent <UILabel> (); UISprite sprLeftTeam = mSprLeftTeam.GetComponent <UISprite> (); UISprite sprRightTeam = mSprRightTeam.GetComponent <UISprite> (); lblDetail.text = UtilMgr.ConvertToDate(schedule.startTime); lblLeftTeam.text = schedule.extend [0].teamName; lblRightTeam.text = schedule.extend [1].teamName; lblScore.text = schedule.extend [0].score + " : " + schedule.extend [1].score; sprLeftTeam.spriteName = UtilMgr.GetTeamEmblem(schedule.extend [0].imageName); sprRightTeam.spriteName = UtilMgr.GetTeamEmblem(schedule.extend [1].imageName); //temp if (schedule.gameStatus == 0) { } else if (schedule.gameStatus == 1) { mBGMatch.GetComponent <UISprite>().color = new Color(0f, 1f, 0f, 0.5f); } else { mBGMatch.GetComponent <UISprite>().color = new Color(0f, 0f, 1f, 0.5f); } }