플랫폼별 입력 화장성을 위해 Inputs구조체 추가 및 InputControoller 추가

- 캐릭터 이동이 정상적으로 작동하지 않는 문제 수정
This commit is contained in:
Mingu Kim
2025-08-30 21:06:16 +09:00
parent 6eb081104f
commit 5b48bad730
3 changed files with 67 additions and 27 deletions

View File

@@ -1,5 +1,15 @@
using UnityEngine;
// public class AIInputController
// {
// public override void UpdateInput(ref Inputs inputs)
// {
// // Monsters 배열 정보 받아
// // 주변 환경 정보 받아오기
// // 환경 정보에 따라서 inputs 변경
// }
// }
public class BossEnemyMove : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
@@ -36,7 +46,8 @@ public class BossEnemyMove : MonoBehaviour
{
_rigidbody = GetComponent<Rigidbody2D>();
Invoke("Think", 5f); // 5초 후에 다시 생각 시작
// GC Alloc 최소화
Invoke(nameof(Think), 5f); // 5초 후에 다시 생각 시작
}
private void FixedUpdate()