29 lines
857 B
C#
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);
|
|
}
|
|
}
|
|
} |