Lade till PickUps
This commit is contained in:
10
Assets/Scripts/Rotator.cs
Normal file
10
Assets/Scripts/Rotator.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Rotator : MonoBehaviour {
|
||||
int speed = 5;
|
||||
|
||||
// Update is called once per frame
|
||||
void Update() {
|
||||
transform.Rotate(new Vector3(15, 30, 45) * (Time.deltaTime * speed));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user