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

18 lines
440 B
C#
Raw Normal View History

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