플랫폼별 입력 화장성을 위해 Inputs구조체 추가 및 InputControoller 추가
- 캐릭터 이동이 정상적으로 작동하지 않는 문제 수정
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user