/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Samples
{
using UnityEngine;
///
/// Rotates the transform according to the specified speed.
///
public class Rotater : MonoBehaviour
{
[Tooltip("The speed that the object should rotate.")]
[SerializeField] protected Vector3 m_RotateSpeed;
///
/// Rotates the transform.
///
public void Update()
{
transform.Rotate(m_RotateSpeed * Time.deltaTime);
}
}
}