private GameObject CreateFance(WallInfo wallInfo) { if (wallInfo.IsNull()) { return(null); } GameObject item = list.NewItem(); item.name = wallInfo.posY + "_" + wallInfo.posX + "_" + wallInfo.posN; FightFanceItem itemCtr = item.AddComponent <FightFanceItem>(); UpdateFance(itemCtr, wallInfo); PosUtil.SetFightWallPos(item.transform, wallInfo.posX, wallInfo.posY, wallInfo.posN); itemCtr.zrotate = GetZRotate(wallInfo.posN); return(item); }