rabidus-test/Assets/ShaderGraph_Dissolve/Utility/Scripts/Rotator.cs

21 lines
325 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DissolveExample
{
public class Rotator : MonoBehaviour
{
public float Speed;
public void Update()
{
transform.Rotate(Vector3.right, Speed * Time.deltaTime);
}
}
}