This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/Scripts/Holograms/RotatingHologram.cs

25 lines
567 B
C#
Raw Normal View History

2023-04-11 05:58:47 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotatingHologram : MonoBehaviour
{
[SerializeField]
private Vector3 globalRotation= Vector3.zero;
[SerializeField]
private Vector3 localRotation = Vector3.zero;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
this.transform.eulerAngles += globalRotation * Time.deltaTime;
this.transform.Rotate(localRotation* Time.deltaTime);
}
}