mycj_demo/mycj/Assets/Game/Scripts/Application/Misc/FBRotate.cs

36 lines
838 B
C#
Raw Normal View History

2024-12-02 09:37:47 +08:00
// Felix-BangFBRotate
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// Describe旋转
// Createtime2018/10/09
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Felix
{
public class FBRotate : MonoBehaviour
{
public float Speed = 360;
void Update ()
{
transform.Rotate(Vector3.forward, Time.deltaTime * Speed, Space.Self);
}
}
}