17 lines
222 B
C#
17 lines
222 B
C#
|
using UnityEngine;
|
||
|
|
||
|
[ExecuteAlways]
|
||
|
public class MaintainRotation : MonoBehaviour
|
||
|
{
|
||
|
public Vector3 eulerAngles;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
private void LateUpdate()
|
||
|
{
|
||
|
base.transform.eulerAngles = eulerAngles;
|
||
|
}
|
||
|
}
|