ProjectDDD/Assets/_DDD/_Scripts/RestaurantCharacter/Npc/Customer/CustomerCharacter.cs
2025-08-21 16:40:49 +09:00

29 lines
857 B
C#

using System.Threading.Tasks;
using Opsive.BehaviorDesigner.Runtime;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace DDD
{
[RequireComponent(typeof(RestaurantCustomerAiComponent))]
public class CustomerCharacter : RestaurantNpcCharacter, ICustomerInitializer
{
private CustomerData _customerData;
protected IRestaurantCustomerAi restaurantCustomerAi;
protected override void Awake()
{
base.Awake();
restaurantCustomerAi = GetComponent<IRestaurantCustomerAi>();
}
public void Initialize(CustomerData customerData)
{
_customerData = customerData;
restaurantCustomerAi.InitializeAi(_customerData);
// 스킨 설정
_spineController.SetSkin(_customerData.SpineSkinKey);
}
}
}