- Home /
Question by
SystemIsGod · Apr 03, 2013 at 03:45 PM ·
rotatepause
Pause or wait on rotating object
Hi, I'm trying to figure out a way to rotate an object 360 degrees but have it pause for a variable amount of time. I'm sure it's easy I just cant seem to get a way to have the two scripts work together. JS or CS doesn't matter to me as this is the only thing the script will be doing, but this is the rotate script I do have.
using UnityEngine;
using System.Collections;
public class rotate: MonoBehaviour {
float rotationAmount = 20.0f;
void Update()
{
transform.Rotate (0, rotationAmount * Time.deltaTime, 0);
}
}
Comment