public static string GetGameObjectLayerName(int camp, int entityType, int state) { int layerCampGroup = LayerSystem.GetLayerCampGroup(camp); if (layerCampGroup == -1) { return("Default"); } int key = layerCampGroup * 100 + entityType * 10 + state; if (!DataReader <ShiTiPengZhuangBiao> .Contains(key)) { return("Default"); } ShiTiPengZhuangBiao shiTiPengZhuangBiao = DataReader <ShiTiPengZhuangBiao> .Get(key); switch (shiTiPengZhuangBiao.layer) { case 1: return("LayerA"); case 2: return("LayerB"); case 3: return("LayerC"); case 4: return("LayerD"); case 5: return("LayerE"); case 6: return("LayerF"); case 7: return("LayerG"); case 8: return("LayerH"); case 9: return("LayerI"); default: return("Default"); } }