2025-07-17 06:38:50 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD
|
|
|
|
{
|
2025-08-19 08:01:38 +00:00
|
|
|
[RequireComponent(typeof(RestaurantCharacterAnimation))]
|
2025-07-17 06:38:50 +00:00
|
|
|
public class RestaurantCharacterMovementConstraint : MonoBehaviour, IRestaurantMovementConstraint
|
|
|
|
{
|
|
|
|
public bool IsBlockingMovement()
|
|
|
|
{
|
|
|
|
if (GetComponent<RestaurantCharacterAnimation>().IsPlayingAnimation())
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|