Space-Smash-Out/Assets/Scripts/LockRotation.cs
Jakob Feldmann 94863a7eb5 feat: free fly arena, 4-player support, 4-player arena, test-scene option etc.
There is also overhauled camera zoom behavior, an update to the match logic,
tweaks to the main menu scene.
2024-05-05 17:53:56 +02:00

17 lines
222 B
C#

using UnityEngine;
public class LockRotation : MonoBehaviour
{
Quaternion initialRotation;
void Start()
{
initialRotation = transform.rotation;
}
void LateUpdate()
{
transform.rotation = initialRotation;
}
}