public void setNode(txUIObject parentInuse, txUIObject parentUnuse, txUIObject template) { mItemParentInuse = parentInuse; mItemParentUnuse = parentUnuse; mTemplate = template; mPreName = template.getName(); }
protected void onMahjongClicked(GameObject go) { if (mPosition != PLAYER_POSITION.PP_MYSELF) { return; } if (!mCanDrop) { return; } txUIObject button = mScript.getLayout().getUIObject(go); int index = getLastNumber(button.getName()); // 点击手里的牌,则将牌设置为准备打出的状态 if (mHandInMahjong[index].mState == HANDIN_STATE.HS_SAVED) { prepareDropMahjong(index); } // 点击准备打出的牌,则请求将牌打出 else if (mHandInMahjong[index].mState == HANDIN_STATE.HS_PREPARE_DROP) { CSRequestDrop requestDrop = mSocketManager.createPacket <CSRequestDrop>(); requestDrop.mIndex.mValue = (byte)index; mSocketManager.sendMessage(requestDrop); } }
public override string showDebugInfo() { return(this.GetType().ToString() + ": object name : " + mObject.getName() + ", speed value : " + mSpeed); }