Exemple #1
0
    void SetNotReady()
    {
        IsNotReady = true;
//	dateTime: "20160426053000",
        string dateTime = UtilMgr.IsMLB() ? UserMgr.eventJoined.dateTime : UserMgr.eventJoined.korDateTime;
        string timeZone = UtilMgr.IsMLB() ? "ET" : "KST";
        int    month    = int.Parse(dateTime.Substring(4, 2));
        int    date     = int.Parse(dateTime.Substring(6, 2));
        int    hour     = int.Parse(dateTime.Substring(8, 2));
        string min      = dateTime.Substring(10, 2);
        string strTime  = Localization.language.Equals("English") ?
                          UtilMgr.GetMonthString(month) + " " + date + ", " + timeZone + " "
                          + UtilMgr.GetAMPM(hour)[0] + ":" + min + " " + UtilMgr.GetAMPM(hour)[1] :
                          month + "월 " + date + "일, " + timeZone + " "
                          + UtilMgr.GetAMPM(hour)[0] + ":" + min + " " + UtilMgr.GetAMPM(hour)[1];

        transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("Sprite")
        .FindChild("NotReady").FindChild("Label1").GetComponent <UILabel>().text
            = string.Format(UtilMgr.GetLocalText("StrBingoSub1"), strTime);

        transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("Sprite")
        .FindChild("NotReady").FindChild("Label2").GetComponent <UILabel>().text
            = UtilMgr.GetLocalText("StrBingoSub2");

        transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("Sprite")
        .FindChild("NotReady").gameObject.SetActive(true);

        Transform score = transform.FindChild("Top").FindChild("Score");

        score.FindChild("AwayScore").GetComponent <UILabel>().text = "0";
        score.FindChild("HomeScore").GetComponent <UILabel>().text = "0";
        score.FindChild("AwayName").GetComponent <UILabel>().text  = UserMgr.eventJoined.awayTeam;
        score.FindChild("HomeName").GetComponent <UILabel>().text  = UserMgr.eventJoined.homeTeam;
        score.FindChild("AwayName").FindChild("Sprite").gameObject.SetActive(false);
        score.FindChild("HomeName").FindChild("Sprite").gameObject.SetActive(false);

        Transform btm = transform.FindChild("Body").FindChild("Scroll View").FindChild("Btm");

        btm.FindChild("Info").FindChild("BG").FindChild("LblRound").GetComponent <UILabel>()
        .text = "";
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").FindChild("Label").GetComponent <UILabel>()
        .text = "";
        btm.FindChild("Info").FindChild("BG").FindChild("LblName").GetComponent <UILabel>()
        .text = "";
        btm.FindChild("Info").FindChild("SprCircle").FindChild("Hand").FindChild("Label").GetComponent <UILabel>()
        .text = "";

        transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("BtnBingo").FindChild("Sprite")
        .gameObject.SetActive(false);
        transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("BtnBingo")
        .GetComponent <UIButton>().isEnabled = false;

        DisableResetBtn();

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

        ShowNext();
    }