holopy3/Assets/ShatterableGlass/Demo/Scripts/Door.cs

16 lines
341 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Simple door rotating script.
public class Door : MonoBehaviour {
//Rotation speed.
public float Speed = 1f;
// Update is called once per frame
void Update () {
transform.Rotate(new Vector3(0f, 1f, 0f) * Time.deltaTime * Speed);
}
}