[Update] 버그 수정 및 에셋수정

1. 에셋 전체적인 수정(캐릭터, 총알, 총 등)
2. 회전시 울타리 밖으로 나갈수있던 현상 수정
    - 울타리 전체에 콜라이더를 줌
This commit is contained in:
jongjae0305
2026-04-16 15:04:32 +09:00
parent d8aabbd428
commit 15bb71750b
695 changed files with 14485 additions and 2168 deletions
+5 -1
View File
@@ -8,6 +8,8 @@ public class BulletSpawner : MonoBehaviour
Transform target;
public Transform firePoint;
public float min = 0.5f;
public float max = 3f;
@@ -29,13 +31,15 @@ public class BulletSpawner : MonoBehaviour
{
time += Time.deltaTime;
transform.LookAt(target);
if(time >= rate)
{
time = 0f;
rate = Random.Range(min, max);
GameObject obj = Instantiate(prefab, transform.position, transform.rotation);
GameObject obj = Instantiate(prefab, firePoint.transform.position, firePoint.transform.rotation);
obj.transform.LookAt(target);
Bullet bulletScript = obj.GetComponent<Bullet>();
+1 -1
View File
@@ -22,7 +22,7 @@ public class NewMonoBehaviourScript : MonoBehaviour
float currentTime = gameManager.GetSurviveTime();
int targetStep = 1;
if (currentTime > 30f) targetStep = 4;
if (currentTime > 10f) targetStep = 4;
else if (currentTime > 20f) targetStep = 3;
else if (currentTime > 10f) targetStep = 2;
else targetStep = 1;
+1 -1
View File
@@ -53,7 +53,7 @@ public class PlayerController : MonoBehaviour
Quaternion newRotation = Quaternion.LookRotation(moveDirection);
transform.rotation = Quaternion.Slerp(transform.rotation, newRotation, 0.2f);
transform.rotation = newRotation;
}
if (Input.GetKeyDown(KeyCode.Alpha1) && shieldCount > 0 && !isShieldActive) //1숫자가 눌리고 카운트가 1이상이고 실드가 활동한 상태이면