Files
WildRoot/Assets/eretichable Technologies/Revolver Gun (Low Poly)/Scripts/Gun_rotation.cs
T
jongjae0305 15bb71750b [Update] 버그 수정 및 에셋수정
1. 에셋 전체적인 수정(캐릭터, 총알, 총 등)
2. 회전시 울타리 밖으로 나갈수있던 현상 수정
    - 울타리 전체에 콜라이더를 줌
2026-04-16 15:04:32 +09:00

22 lines
331 B
C#

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);
}
}