[Update] 버그 수정 및 에셋수정
1. 에셋 전체적인 수정(캐릭터, 총알, 총 등)
2. 회전시 울타리 밖으로 나갈수있던 현상 수정
- 울타리 전체에 콜라이더를 줌
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user