holopy3/Assets/Scripts/TurnAround.cs

15 lines
284 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TurnAround : MonoBehaviour
{
public float Speed = 3.0f;
// Update is called once per frame
void Update()
{
gameObject.transform.Rotate(Vector3.up / Speed);
}
}