public void OnClick() { if (isDrag) { return; } if (MahjongManger.Instance.hasCardDarg) { return; } // Debug.LogError("点击Onclick"); if (iState == 1) { iState = 0; PlayerPlayingPanelData pppd = GameData.Instance.PlayerPlayingPanelData; if (pppd.isCanHandCard) { PutCard(1); } else { MoveDown(bMahjongValue); } } else if (iState == 0) { iState = 1; SystemMgr.Instance.AudioSystem.PlayManual(AudioSystem.AudioMenel.pick_card, false, false); for (int i = 0; i < transform.parent.GetComponentsInChildren <Mahjong>(false).Length; i++) { Mahjong mj = transform.parent.GetComponentsInChildren <Mahjong>(false)[i]; if (mj != this) { if (mj.iState == 1) { // Debug.LogError("有牌上去了"); mj.iState = 0; mj.MoveDown(mj.bMahjongValue); } } } MoveUp(); } }