16 lines
330 B
C#
16 lines
330 B
C#
using UnityEngine;
|
|
|
|
public class KeepRotation : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void LateUpdate()
|
|
{
|
|
transform.rotation = Camera.main.transform.rotation;
|
|
}
|
|
}
|