r2mods/ilspy_dump/ror2_csproj/RoR2/MatchTransform.cs

24 lines
376 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2;
[ExecuteAlways]
public class MatchTransform : MonoBehaviour
{
public Transform targetTransform;
public void LateUpdate()
{
UpdateNow();
}
[ContextMenu("Update Now")]
public void UpdateNow()
{
if ((bool)targetTransform)
{
base.transform.SetPositionAndRotation(targetTransform.position, targetTransform.rotation);
}
}
}