Пример #1
0
    public void SetOtherGangPaiParameter(MaJiangGangPaiNotifyOtherParameter param)
    {
        m_SelfName.text  = param.PlayerId;
        m_OtherName.text = string.Join(StringConsts.SPACING, param.DianGangPlayers.ToArray());

        switch (param.ShouPai.Count)
        {
        case 0:      //0 ba gang
            m_OtherIcon.gameObject.SetActive(false);
            m_SelfIcon.SetSprite("Settlement_BaGang");
            break;

        case 3:      //3 diang gang
            m_OtherIcon.gameObject.SetActive(true);
            m_SelfIcon.SetSprite("Settlement_YinGang");
            m_OtherIcon.SetSprite("Settlement_DianGang");
            break;

        case 4:     //4 an gang
            m_OtherIcon.gameObject.SetActive(false);
            m_SelfIcon.SetSprite("Settlement_AnGang");
            break;
        }

        m_SelftBonus.text = ((param.ShouPai.Count == 0 ? SystemConsts.Di : SystemConsts.Di * 2) * param.DianGangPlayers.Count).ToString();
        m_OtherBonus.text = (-(param.ShouPai.Count == 0 ? SystemConsts.Di : SystemConsts.Di * 2)).ToString();
        m_Title.SetSprite("TitleRainWind");
    }
Пример #2
0
    private void OtherGangPai(Hashtable response)
    {
        MaJiangGangPaiNotifyOtherParameter param = new MaJiangGangPaiNotifyOtherParameter();

        param.InitialParameterObjectFromHashtable(response);

        this.m_Factory.CreateOtherGangPai(this.m_PlayerPositionDict[param.PlayerId], param.Pai);
        if (param.CanGetBouns)
        {
            WinManager.Instance.WinWindRain.ShowWindow(param);
        }
    }
Пример #3
0
 public void ShowWindow(MaJiangGangPaiNotifyOtherParameter param)
 {
     m_SettlementPlayerItem3.SetOtherGangPaiParameter(param);
     base.ShowWindow();
     StartCoroutine(DelayHideWindow());
 }