// 打印 public void PrintPokerBag() { string printText = ""; for (int i = 0; i < _publicPokerBag.Count; i++) { Poker poker = _publicPokerBag[i]; if ((i + 1) % (int)(ePOKER_COUNT.suit) == 0 || i == _publicPokerBag.Count - 1) { Debug.LogError(printText + poker.toString()); printText = ""; } else { printText += poker.toString() + " 、 "; } } }
static public int toString(IntPtr l) { try { PokerBase.Poker self = (PokerBase.Poker)checkSelf(l); var ret = self.toString(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }