You've already forked taptap2024_GJ_chidouren
20 lines
290 B
C#
20 lines
290 B
C#
|
|
using UnityEngine;
|
|||
|
|
using System.Collections;
|
|||
|
|
|
|||
|
|
public class Rotate : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
Vector3 angle;
|
|||
|
|
|
|||
|
|
void Start()
|
|||
|
|
{
|
|||
|
|
this.angle = this.transform.eulerAngles;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void Update()
|
|||
|
|
{
|
|||
|
|
this.angle.y += Time.deltaTime * 100;
|
|||
|
|
this.transform.eulerAngles = this.angle;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|