init
This commit is contained in:
commit
f5c1616018
679 changed files with 188502 additions and 0 deletions
17
Assets/Pixel3D/Scripts/Rotator.cs
Normal file
17
Assets/Pixel3D/Scripts/Rotator.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class Rotator : MonoBehaviour
|
||||
{
|
||||
[SerializeField] float _speedX = 50f;
|
||||
[SerializeField] float _speedY = 50f;
|
||||
[SerializeField] float _speedZ = 50f;
|
||||
|
||||
void Update()
|
||||
{
|
||||
var rotationX = _speedX * Time.deltaTime;
|
||||
var rotationY = _speedY * Time.deltaTime;
|
||||
var rotationZ = _speedZ * Time.deltaTime;
|
||||
|
||||
transform.Rotate(rotationX, rotationY, rotationZ, Space.Self);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue