using UnityEngine; namespace DDD { [RequireComponent(typeof(RestaurantCharacterAnimation))] public class RestaurantCharacterMovementConstraint : MonoBehaviour, IRestaurantMovementConstraint { public bool IsBlockingMovement() { if (GetComponent().IsPlayingAnimation()) { return true; } return false; } } }