using System.Collections; using System.Collections.Generic; using UnityEngine; public class PrefabSutureSideBaking : ModulePrefab { private DataSutureSide sutureSide; public override DataSutureSide Value => sutureSide; public LineRenderer lineRenderer => GetComponent(); public override void UpdateVisual(DataSutureSide sutureSide) { this.sutureSide = sutureSide; lineRenderer.positionCount = sutureSide.bakingPositions.Length; lineRenderer.SetPositions(sutureSide.bakingPositions); } }