123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /// <summary>
- /// 言灵旋转
- /// </summary>
- public class YanLingRotate : MonoBehaviour
- {
- private Transform selfTransform = null;
- private float speed = 60;
- // Start is called before the first frame update
- void Start()
- {
- selfTransform = transform;
- }
- // Update is called once per frame
- void Update()
- {
- selfTransform.Rotate(Vector3.up * Time.deltaTime * speed);
- }
- }
|