2026-04-18 13:57:19 -04:00
|
|
|
|
using UnityEngine;
|
2025-11-25 08:19:33 -05:00
|
|
|
|
|
|
|
|
|
|
namespace SickscoreGames.HUDNavigationSystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public class HUDKeepRotation : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
#region Variables
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Main Methods
|
|
|
|
|
|
private Transform _transform;
|
|
|
|
|
|
private Quaternion _rotation;
|
|
|
|
|
|
|
|
|
|
|
|
void Awake ()
|
|
|
|
|
|
{
|
|
|
|
|
|
_transform = this.transform;
|
|
|
|
|
|
_rotation = _transform.rotation;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void LateUpdate ()
|
|
|
|
|
|
{
|
|
|
|
|
|
_transform.rotation = _rotation;
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Utility Methods
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Subclasses
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|