23 lines
541 B
C#
23 lines
541 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public class SetTransform : MonoBehaviour
|
|
{
|
|
public Vector3 targetPos = new Vector3(0, 0, 0);
|
|
public Vector3 targetAngles = new Vector3(0, 0, 0);
|
|
|
|
public void Start()
|
|
{
|
|
targetPos = transform.localPosition;
|
|
targetAngles = transform.localEulerAngles;
|
|
}
|
|
|
|
private void LateUpdate()
|
|
{
|
|
transform.localPosition = targetPos;
|
|
transform.localEulerAngles = targetAngles;
|
|
}
|
|
}
|
|
} |