RestaurantCharacter 컴포넌트 종속성 RequireComponent 특성 추가

- RestaurantPlayerAnimation: RestaurantPlayerMovement 종속성 추가
- RestaurantPlayerMovement: Rigidbody, BoxCollider 종속성 추가
- RestaurantNpcMovement: AIPath 종속성 추가
This commit is contained in:
Jeonghyeon Ha 2025-08-19 17:13:34 +09:00
parent 0fe8a54e09
commit 44611116d9
3 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(AIPath))]
public class RestaurantNpcMovement : RestaurantCharacterMovement, IAiMovement, ICurrentDirection public class RestaurantNpcMovement : RestaurantCharacterMovement, IAiMovement, ICurrentDirection
{ {
private IAstarAI _iAstarAi; private IAstarAI _iAstarAi;

View File

@ -2,6 +2,7 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(RestaurantPlayerMovement))]
public class RestaurantPlayerAnimation : RestaurantCharacterAnimation public class RestaurantPlayerAnimation : RestaurantCharacterAnimation
{ {
private RestaurantPlayerMovement _restaurantPlayerMovement; private RestaurantPlayerMovement _restaurantPlayerMovement;

View File

@ -7,6 +7,8 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(BoxCollider))]
public class RestaurantPlayerMovement : RestaurantCharacterMovement, ICurrentDirection public class RestaurantPlayerMovement : RestaurantCharacterMovement, ICurrentDirection
{ {
#region Fields #region Fields