r2mods/ilspy_dump/ror2_csproj/RoR2/MidpointBetweenTwoTransform...

17 lines
295 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2;
[ExecuteAlways]
public class MidpointBetweenTwoTransforms : MonoBehaviour
{
public Transform transform1;
public Transform transform2;
public void Update()
{
base.transform.position = Vector3.Lerp(transform1.position, transform2.position, 0.5f);
}
}