Esempio n. 1
0
    public void SetOtherHuPaiParameter(MaJiangHuPaiNotifyOtherParameter param)
    {
        m_SelfName.text = param.PlayerId;
        bool isZiMo = this.IsBonusType(param.BounsTypes, BounsType.ZiMo);

        m_OtherName.text = isZiMo ? string.Format(StringConsts.GUANG_JIA, string.Join(StringConsts.SPACING, param.FangPaoPlayerIds.ToArray()), param.FangPaoPlayerIds.Count) : param.FangPaoPlayerIds[0];

        m_SelfIcon.SetSprite(isZiMo ? "Settlement_ZhiMo" : "Settlement_Hu");
        m_OtherIcon.gameObject.SetActive(!isZiMo);
        m_OtherIcon.SetSprite("Settlement_FangPao");
        m_SelftBonus.text = string.Empty;
        m_OtherBonus.text = string.Empty;
        m_Title.SetSprite(isZiMo ? "TitleZiMo" : "TitleHu");
    }
Esempio n. 2
0
    private void OtherHuPai(Hashtable response)
    {
        MaJiangHuPaiNotifyOtherParameter param = new MaJiangHuPaiNotifyOtherParameter();

        param.InitialParameterObjectFromHashtable(response);
        //Debug.Log(param.PlayerId);
        //Debug.Log(param.Bouns);
        //foreach(BounsType type in param.BounsTypes)
        //{
        //    Debug.Log(type.ToString());
        //}
        //if(!string.IsNullOrEmpty(param.FangPaoPlayerId))
        //{
        //    Debug.Log(param.FangPaoPlayerId);
        //}
        this.m_Factory.CreateOtherHuPai(this.m_PlayerPositionDict[param.PlayerId], param.Pai);
        if (!param.IsTheLastOne)
        {
            WinManager.Instance.WinWindRain.ShowWindow(param);
        }
    }
Esempio n. 3
0
 public void ShowWindow(MaJiangHuPaiNotifyOtherParameter param)
 {
     m_SettlementPlayerItem3.SetOtherHuPaiParameter(param);
     base.ShowWindow();
     StartCoroutine(DelayHideWindow());
 }