Files
2024-11-20 15:21:28 +01:00

22 lines
354 B
C#

using UnityEngine;
using Fluxy;
[RequireComponent(typeof(FluxyTarget))]
public class RotateTarget : MonoBehaviour
{
public float speed = 1;
FluxyTarget target;
void Start()
{
target = GetComponent<FluxyTarget>();
}
void Update()
{
target.rotation += speed * Time.deltaTime * Mathf.Rad2Deg;
}
}