ZoeRobotIngles/Assets/Scripts/RingNotRot.cs

20 lines
381 B
C#
Raw Normal View History

2026-01-26 22:56:16 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RingNotRot : MonoBehaviour
{
Transform trToAllign;
private void Awake()
{
trToAllign = transform.parent;
}
// Update is called once per frame
void Update()
{
transform.rotation = Quaternion.Euler(0, 0, trToAllign.rotation.z * -1);
}
}