public static NetInfo.Segment SetMeshes(this NetInfo.Segment segment, string newMeshPath, string newLODMeshPath = null) { segment.m_mesh = AssetManager.instance.GetMesh(newMeshPath); if (newLODMeshPath != null) { segment.m_lodMesh = AssetManager.instance.GetMesh(newLODMeshPath); } return segment; } }