Heroes_of_Hiis/Assets/Project Files/Scripts/Arlo/TestRotator.cs

22 lines
392 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestRotator : MonoBehaviour
{
private GameObject cube;
// Start is called before the first frame update
void Start()
{
cube = GameObject.Find("Cube (1)");
}
// Update is called once per frame
void Update()
{
cube.transform.Rotate(0, 1, 0);
}
}