Files
XCEngine/project/Assets/Scripts/RotateProbe.cs

14 lines
289 B
C#

using XCEngine;
namespace ProjectScripts
{
public sealed class RotateProbe : MonoBehaviour
{
public float rotateSpeed = 90f;
void Update()
{
transform.Rotate(new Vector3(0f, 1f, 0f), rotateSpeed * Time.deltaTime, Space.Self);
}
}
}