// 获得所有棋子布局信息 public void GetAllChessesInfo( out List <int> birthIDs, out List <Hex> positions, out List <int> directions, out List <int> campIds) { birthIDs = new List <int> (); positions = new List <Hex> (); directions = new List <int> (); campIds = new List <int> (); var ccmgr = _MiroMgr.GetComponent <CCManager> (); List <MiroModelV1> models = _MiroMgr.GetMiroModels(); foreach (MiroModelV1 m in models) { int birthId = m.GetBirthID(); Hex pos = ccmgr.GetHexOfModel(m); int dir = ccmgr.GetDirOfModel(m); int campid = _MiroMgr.GetIdOfMiroModelSetting( m.GetComponent <MiroV1ModelSetting> ()); birthIDs.Add(birthId); positions.Add(pos); directions.Add(dir); campIds.Add(campid); } }