Global Game Jam 2023
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
271 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class spin : MonoBehaviour
  5. {
  6. public float turnFactor = 1f;
  7. private void Update()
  8. {
  9. transform.rotation = Quaternion.Euler(0f, Time.time * turnFactor, 0f);
  10. }
  11. }