void RPC_S2C_BeginRecycle(uLink.BitStream stream, uLink.NetworkMessageInfo info) { _ColonyObj._RecordData.m_DeleteTime = stream.Read <float>(); m_Entity.StartDeleteCounter(0, _ColonyObj._RecordData.m_DeleteTime); CSUI_MainWndCtrl.ShowStatusBar(CSUtils.GetNoFormatString(UIMsgBoxInfo.mStartToDelete.GetString(), m_Entity.Name)); }
void OnOKBtn() { if (m_Entity == null) { return; } if (!GameConfig.IsMultiMode) { if (funcType == FuncType.Repair) { foreach (CSUI_MaterialGrid item in m_MatItemList) { m_PlayerPackageCmpt.package.Destroy(item.ItemID, item.NeedCnt); } m_Entity.StartRepairCounter(); // CSUI_MainWndCtrl.ShowStatusBar("Start to repair the " + m_Entity.Name + "."); CSUI_MainWndCtrl.ShowStatusBar(CSUtils.GetNoFormatString(UIMsgBoxInfo.mStartToRepair.GetString(), m_Entity.Name)); } else { m_Entity.ClearDeleteGetsItem(); foreach (CSUI_MaterialGrid item in m_MatItemList) { m_Entity.AddDeleteGetsItem(item.ItemID, item.NeedCnt); } m_Entity.StartDeleteCounter(); // CSUI_MainWndCtrl.ShowStatusBar("Start to delete the " + m_Entity.Name + "."); CSUI_MainWndCtrl.ShowStatusBar(CSUtils.GetNoFormatString(UIMsgBoxInfo.mStartToDelete.GetString(), m_Entity.Name)); } } else { //multimode if (funcType == FuncType.Repair) { m_Entity._ColonyObj.Repair(); } else { m_Entity._ColonyObj.RecycleItems(); } } Destroy(gameObject); }