14 lines
265 B
C#
14 lines
265 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class XuanZhuan_Loop: MonoBehaviour
|
|
{
|
|
public float speed ;
|
|
public Vector3 dir;
|
|
void Update()
|
|
{
|
|
transform.Rotate(dir * Time.deltaTime * speed);
|
|
}
|
|
}
|