
- RestaurantCharacter, RestaurantNpcCharacter, RestaurantCharacterAnimation에 RequireComponent 어트리뷰트 추가 - RestaurantCharacterMovementConstraint에 필수 컴포넌트 의존성 명시 - 깃 커밋 가이드라인 추가
18 lines
440 B
C#
18 lines
440 B
C#
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
[RequireComponent(typeof(RestaurantCharacterAnimation))]
|
|
public class RestaurantCharacterMovementConstraint : MonoBehaviour, IRestaurantMovementConstraint
|
|
{
|
|
public bool IsBlockingMovement()
|
|
{
|
|
if (GetComponent<RestaurantCharacterAnimation>().IsPlayingAnimation())
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
} |