레스토랑 캐릭터 시스템 컴포넌트 의존성 개선

- RestaurantCharacter, RestaurantNpcCharacter, RestaurantCharacterAnimation에 RequireComponent 어트리뷰트 추가
- RestaurantCharacterMovementConstraint에 필수 컴포넌트 의존성 명시
- 깃 커밋 가이드라인 추가
This commit is contained in:
Jeonghyeon Ha 2025-08-19 17:01:38 +09:00
parent 1fd5279cd2
commit 0fe8a54e09
6 changed files with 12 additions and 2 deletions

View File

@ -45,3 +45,7 @@
- 각 응답에 계획, 진행 상황, 다음 단계를 포함한 `<UPDATE>`를 포함합니다. - 각 응답에 계획, 진행 상황, 다음 단계를 포함한 `<UPDATE>`를 포함합니다.
- 코드가 변경되었다면, 에지 케이스를 고려하고 런타임 경로에서 에디터 전용 API 사용을 피하십시오. - 코드가 변경되었다면, 에지 케이스를 고려하고 런타임 경로에서 에디터 전용 API 사용을 피하십시오.
- 제출 전에 의도치 않은 파일(특히 생성 디렉터리와 Addressable 그룹)이 수정되지 않았는지 확인하십시오. - 제출 전에 의도치 않은 파일(특히 생성 디렉터리와 Addressable 그룹)이 수정되지 않았는지 확인하십시오.
## 깃
- 깃 커밋 시, 한국어로 커밋 메시지를 작성합니다.
- 깃 커밋 메시지는 간결하고 핵심 정보만 포함해야 합니다.

Binary file not shown.

View File

@ -1,7 +1,9 @@
using BehaviorDesigner.Runtime; using BehaviorDesigner.Runtime;
using UnityEngine;
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(BehaviorTree))]
public class RestaurantNpcCharacter : RestaurantCharacter public class RestaurantNpcCharacter : RestaurantCharacter
{ {
protected BehaviorTree _behaviorTree; protected BehaviorTree _behaviorTree;

View File

@ -3,6 +3,8 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(RestaurantCharacterInteraction))]
[RequireComponent(typeof(SpineController))]
public class RestaurantCharacter : MonoBehaviour, IGameCharacter, IInteractor public class RestaurantCharacter : MonoBehaviour, IGameCharacter, IInteractor
{ {
[EnumToggleButtons, SerializeField] protected InteractionType _interactionType; [EnumToggleButtons, SerializeField] protected InteractionType _interactionType;

View File

@ -2,6 +2,7 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(SpineController))]
public class RestaurantCharacterAnimation : MonoBehaviour public class RestaurantCharacterAnimation : MonoBehaviour
{ {
protected SpineController _spineController; protected SpineController _spineController;

View File

@ -2,6 +2,7 @@
namespace DDD namespace DDD
{ {
[RequireComponent(typeof(RestaurantCharacterAnimation))]
public class RestaurantCharacterMovementConstraint : MonoBehaviour, IRestaurantMovementConstraint public class RestaurantCharacterMovementConstraint : MonoBehaviour, IRestaurantMovementConstraint
{ {
public bool IsBlockingMovement() public bool IsBlockingMovement()