Esempio n. 1
0
    public void SetSelfHuPaiParameter(MaJiangHuPaiNotifySelfParameter param)
    {
        m_SelfName.text = PlayerInformation.Instance.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 SelfHuPai(Hashtable response)
    {
        MaJiangHuPaiNotifySelfParameter param = new MaJiangHuPaiNotifySelfParameter();

        param.InitialParameterObjectFromHashtable(response);

        //print("SelfHuPai =  "+param.Pai);
        //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.CreateSelfHuPai(param.Pai);
        if (!param.IsTheLastOne)
        {
            WinManager.Instance.WinWindRain.ShowWindow(param);
        }
    }
Esempio n. 3
0
 //public void ShowWindow(MaJiangQiangGangNotifySelfParameter param)
 //{
 //    base.ShowWindow();
 //}
 public void ShowWindow(MaJiangHuPaiNotifySelfParameter param)
 {
     m_SettlementPlayerItem3.SetSelfHuPaiParameter(param);
     base.ShowWindow();
     StartCoroutine(DelayHideWindow());
 }