25 lines
567 B
C#
25 lines
567 B
C#
|
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);
|
||
|
}
|
||
|
}
|