Facebook
From Augustus, 1 Month ago, written in C#.
Embed
Download Paste or View Raw
Hits: 139
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class moveFarmer : MonoBehaviour
  6. {
  7.     [SerializeField] private float spinSpeed = 50f;
  8.     // Start is called before the first frame update
  9.     void Start()
  10.     {
  11.  
  12.     }
  13.  
  14.     // Update is called once per frame
  15.     void Update()
  16.     {
  17.         transform.Rotate(Vector3.up, spinSpeed * Time.deltaTime);
  18.     }
  19. }
  20.