updated with enemy
This commit is contained in:
24
Assets/Scripts/Holograms/RotatingHologram.cs
Normal file
24
Assets/Scripts/Holograms/RotatingHologram.cs
Normal file
@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
11
Assets/Scripts/Holograms/RotatingHologram.cs.meta
Normal file
11
Assets/Scripts/Holograms/RotatingHologram.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33ef93bdb1481e341ab083f8146e3624
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user