LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/SetLineRendererPoints.cs

22 lines
387 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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);
}
}