public class itself : MonoBehaviour
{
// 这个脚本是用来让物体围绕自己的x轴旋转
public float rotatespeed = 10f;
// Update is called once per frame
void Update()
{
this.transform.Rotate(new Vector3(0, 1, 0), rotatespeed * Time.deltaTime, Space.Self);
}
}