11 行
203 B
11 行
203 B
using UnityEngine;
|
|
|
|
public class GenericRotation : MonoBehaviour
|
|
{
|
|
public Vector3 rotationVector;
|
|
|
|
private void Update ()
|
|
{
|
|
transform.localEulerAngles += rotationVector * Time.deltaTime;
|
|
}
|
|
}
|