// 训练中的信息 private void ShowOnTrainInfo() { if (m_Camp == null) { return; } int Count = m_Camp.GetOnTrainCount(); m_OnTrainCountTxt.text = string.Format("训练数量:" + Count); if (Count > 0) { m_TrainTimerText.text = string.Format("完成时間:{0:0.00}", m_Camp.GetTrainTimer()); } else { m_TrainTimerText.text = ""; } // 存活单位 m_UnitCountVisitor.Reset(); m_PBDGame.RunCharacterVisitor(m_UnitCountVisitor); int UnitCount = m_UnitCountVisitor.GetUnitCount(m_Camp.GetSoldierType()); m_AliveCountTxt.text = string.Format("存活单位:{0}", UnitCount); }