holopy3/Assets/Scripts/TurnAround.cs
2020-12-10 15:25:12 +01:00

14 lines
284 B
C#

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);
}
}