コード例 #1
0
 //每小局要清空的数据
 public void LittleRoundClearData()
 {
     ResidueCards = null;
     CanOperatePlayerIndex.Clear();//当前可以行进操作的玩家索引列表
     BeforeOperateResults.Clear();
     HuPaiPlayerSeatIndexs.Clear();
     LiangDaoCanHuCards.Clear();     //亮倒 所有玩家可以胡的牌
     CurrChuPaiIndex           = -1; //当前出牌玩家的索引
     CurrChuPaiCard            = -1; //当前出的哪张牌
     IsDaPiaoBeing             = false;
     EntiretyOprationAleadyNum = 0;
     LastMoPaiSeatIndex        = -1; //最后一个摸牌玩家的索引
     CanPlayCardPlayerIndex    = 0;  //正在操作的玩家索引
     QiOperateNextStep         = 0;
     _overTime = 0;
     CurrParticularMiltaryRecordData = ComponentFactory.Create <ParticularMiltaryRecordDataInfo>(); //重置录像小局数据
     EndCanOperateAndCanChuMessage   = null;                                                        //最后一条可操作消息清除
     MaiMaCard = -1;                                                                                //买马买的哪一张牌
     foreach (var player in FiveStarPlayerDic)
     {
         player.Value.LittleRoundClearData();
     }
 }
コード例 #2
0
 public void Awake()
 {
     CurrParticularMiltaryRecordData = ComponentFactory.Create <ParticularMiltaryRecordDataInfo>();
 }