[TASK] Show collected duck stickers
This commit is contained in:
15
Assets/Spinner.cs
Normal file
15
Assets/Spinner.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Experimental.PlayerLoop;
|
||||
|
||||
public class Spinner : MonoBehaviour
|
||||
{
|
||||
private Vector3 speed = new Vector3(0, 1, 0);
|
||||
|
||||
private void Update()
|
||||
{
|
||||
transform.rotation = Quaternion.Euler(speed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user