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

public class Spin : MonoBehaviour
{
    public float XRotation = 0f, YRotation = 0f, ZRotation = 0f;
    [ReadOnly] public Vector3 currentRot = Vector3.zero;

    // Update is called once per frame
    void Update()
    {
        currentRot = new Vector3(XRotation, YRotation, ZRotation) * Time.deltaTime;

        transform.Rotate(currentRot);
    }
}
