s
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class PrefabSutureSideBaking : ModulePrefab<DataSutureSide> {
|
||||
|
||||
private DataSutureSide sutureSide;
|
||||
|
||||
public override DataSutureSide Value => sutureSide;
|
||||
public LineRenderer lineRenderer => GetComponent<LineRenderer>();
|
||||
|
||||
public override void UpdateVisual(DataSutureSide sutureSide) {
|
||||
this.sutureSide = sutureSide;
|
||||
|
||||
lineRenderer.positionCount = sutureSide.bakingPositions.Length;
|
||||
lineRenderer.SetPositions(sutureSide.bakingPositions);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user