17 lines
288 B
C#
17 lines
288 B
C#
using UnityEngine;
|
|
|
|
namespace StixGames.GrassShader
|
|
{
|
|
public class RotateAxis : MonoBehaviour
|
|
{
|
|
public Vector3 axis = Vector3.forward;
|
|
|
|
public float speed = 90f;
|
|
|
|
private void Update()
|
|
{
|
|
base.transform.rotation *= Quaternion.AngleAxis(speed * Time.deltaTime, axis);
|
|
}
|
|
}
|
|
}
|