20 lines
381 B
C#
20 lines
381 B
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|