14 lines
284 B
C#
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);
|
|
}
|
|
}
|