Files

22 lines
331 B
C#
Raw Permalink Normal View History

2026-04-16 15:04:32 +09:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Gun_rotation : MonoBehaviour
{
public float RotateSpeed = 25.0f;
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.Rotate(0, RotateSpeed * Time.deltaTime, 0);
}
}