first commit
This commit is contained in:
12
Assets/Scripts/Rotation.cs
Normal file
12
Assets/Scripts/Rotation.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Rotation : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float _speed = 10f;
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(Vector3.up, -_speed * Time.deltaTime, Space.World);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user