protected virtual void SwitchNormalState() { MahjongContainer item = null; var list = PlayerHand.MahjongList; for (int i = 0; i < list.Count; i++) { item = list[i]; item.Lock = false; item.SetMahjongScript(); item.SetAllowOffsetStatus(true); item.SetThowOutCall(ThrowCardClickEvent); item.ResetPos(); } UserContorl.ClearSelectCard(); }
/// <summary> /// 切换为选换牌状态 /// </summary> private void SwitchSelectCardsState() { MahjongContainer item = null; UserContorl.ClearSelectCard(); var list = PlayerHand.MahjongList; for (int i = 0; i < list.Count; i++) { item = list[i]; item.SetAllowOffsetStatus(false); item.SetThowOutCall(SwitchCardsClickEvent); item.Lock = false; //屏蔽牌的select事件 item.SetSelectFlag(true); item.ResetPos(); } }