You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HighGroundRoyaleNetcode/Assets/JMO Assets/Cartoon FX/Scripts/CFX2_AutoRotate.cs

17 lines
308 B
C#

using UnityEngine;
using System.Collections;
// Cartoon FX - (c) 2013,2014 Jean Moreno
// Indefinitely rotates an object at a constant speed
public class CFX2_AutoRotate : MonoBehaviour
{
public Vector3 speed = new Vector3(0,40f,0);
void Update ()
{
transform.Rotate(speed * Time.deltaTime);
}
}