ProjectDDD/Assets/_DDD/_Scripts/RestaurantCharacter/RestaurantCharacterMovementConstraint.cs

17 lines
379 B
C#
Raw Normal View History

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