using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AutoRotation : MonoBehaviour
{
    float rotationY = 0f;
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        rotationY += Time.deltaTime * 5;
        transform.rotation = Quaternion.Euler(-90f, rotationY, 0);
        if (rotationY > 360) {
            rotationY -= 360;
        }
    }
}
