Build simple script that rotates game object
This commit is contained in:
11
Assets/Scripts/RotatingLogo.cs
Normal file
11
Assets/Scripts/RotatingLogo.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class RotatingLogo : MonoBehaviour
|
||||
{
|
||||
public Vector3 speed;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(speed);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user