21 lines
644 B
C#
21 lines
644 B
C#
![]() |
using Opsive.BehaviorDesigner.Runtime;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace DDD
|
||
|
{
|
||
|
public class RestaurantCustomerBlackboardComponent : MonoBehaviour, IRestaurantCustomerBlackboard
|
||
|
{
|
||
|
private Subtree _subtree;
|
||
|
|
||
|
public void InitializeWithBehaviorTree(Subtree subtree)
|
||
|
{
|
||
|
_subtree = subtree;
|
||
|
_subtree.SetVariableValue(nameof(RestaurantCustomerBlackboardKey.SelfGameObject), gameObject);
|
||
|
}
|
||
|
|
||
|
public void SetCustomerData(CustomerData inCustomerData)
|
||
|
{
|
||
|
_subtree.SetVariableValue(nameof(RestaurantCustomerBlackboardKey.CustomerData), inCustomerData);;
|
||
|
}
|
||
|
}
|
||
|
}
|