LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/SetLineRendererPoints.cs
2023-12-22 18:30:10 -05:00

21 lines
387 B
C#

using UnityEngine;
public class SetLineRendererPoints : MonoBehaviour
{
private LineRenderer lineRenderer;
public Transform anchor;
public Transform target;
private void Start()
{
lineRenderer = base.gameObject.GetComponent<LineRenderer>();
}
private void LateUpdate()
{
lineRenderer.SetPosition(0, anchor.position);
lineRenderer.SetPosition(1, target.position);
}
}