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

21 lines
325 B
C#
Raw Normal View History

2023-10-17 14:17:56 +03:00
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);
}
}
}