Пример #1
0
    void Start()
    {
        ChannelChan.ChannelType type = ((ChannelChan)GameManager.Instance.selectedChannel).type;
        string channel = type == ChannelChan.ChannelType.Amateur ? "Nền đất"
            : type == ChannelChan.ChannelType.Professional ? " Chiếu cói"
            : type == ChannelChan.ChannelType.Experts ? "Phản gỗ"
            : type == ChannelChan.ChannelType.Giants ? "Sập gụ" : "Chiếu vương";

        lbName.text = channel + " " + ((LobbyChan)GameManager.Instance.selectedLobby).gameIndex + " - " + ((LobbyChan)GameManager.Instance.selectedLobby).nameLobby;

        if (GameManager.PlayGoldOrChip == "chip")
        {
            lbBetting.text = Utility.Convert.Chip(((LobbyChan)GameManager.Instance.selectedLobby).betting) + " Chip";
        }
        else if (GameManager.PlayGoldOrChip == "gold")
        {
            lbBetting.text = Utility.Convert.Chip(((LobbyChan)GameManager.Instance.selectedLobby).betting) + " Gold";
        }

        lbGameType.text = ((LobbyChan)GameManager.Instance.selectedLobby).config.RULE_FULL_PLAYING == 1 ? "Ù xuông" :
                          ((LobbyChan)GameManager.Instance.selectedLobby).config.RULE_FULL_PLAYING == 2 ? "Ù không xuông" :
                          ((LobbyChan)GameManager.Instance.selectedLobby).config.RULE_FULL_PLAYING == 3 ? "Ù 4-17 điểm" : "";
        lbGa.text   = ((LobbyChan)GameManager.Instance.selectedLobby).config.strGameRule;
        lbTime.text = ((LobbyChan)GameManager.Instance.selectedLobby).timePlay + "s";
        listMessage.ForEach(str =>
        {
            textInfor.Add(str);
            Utility.AutoScrollChat(textInfor);
        });
    }
Пример #2
0
 public void showNameChannel()
 {
     ChannelChan.ChannelType type = channelSelected.type;
     GameObject.Find("Selected Channel").GetComponent <UISprite>().spriteName = type == ChannelChan.ChannelType.Amateur ? "nendat"
         : type == ChannelChan.ChannelType.Professional ? "chieucoi"
         : type == ChannelChan.ChannelType.Experts ? "phango"
         : type == ChannelChan.ChannelType.Giants ? "sapgu" : "chieuvuong";
 }
Пример #3
0
 public void showNameChannel()
 {
     ChannelChan.ChannelType type = channelSelected.type;
     selectedChannel.spriteName = type == ChannelChan.ChannelType.Amateur ? "nendat"
         : type == ChannelChan.ChannelType.Professional ? "chieucoi"
         : type == ChannelChan.ChannelType.Experts ? "phango"
         : type == ChannelChan.ChannelType.Giants ? "sapgu" : "chieuvuong";
     selectedChannel.MakePixelPerfect();
 }