15bb71750b
1. 에셋 전체적인 수정(캐릭터, 총알, 총 등)
2. 회전시 울타리 밖으로 나갈수있던 현상 수정
- 울타리 전체에 콜라이더를 줌
22 lines
331 B
C#
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);
|
|
}
|
|
}
|