2024-06-18 18:16:19 +00:00
|
|
|
using System;
|
|
|
|
using BehaviorDesigner.Runtime.Tasks;
|
|
|
|
using BlueWater.Npcs.Customers;
|
|
|
|
using Action = BehaviorDesigner.Runtime.Tasks.Action;
|
|
|
|
|
|
|
|
namespace BlueWater.BehaviorTrees.Actions
|
|
|
|
{
|
|
|
|
[TaskCategory("Custom/Npc/Customer")]
|
|
|
|
[Serializable]
|
|
|
|
public class SetTableSeatPositionAndDirection : Action
|
|
|
|
{
|
|
|
|
private Customer _customer;
|
|
|
|
|
|
|
|
public override void OnAwake()
|
|
|
|
{
|
|
|
|
_customer = GetComponent<Customer>();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override TaskStatus OnUpdate()
|
|
|
|
{
|
2024-07-02 18:27:56 +00:00
|
|
|
_customer.SetTableSeatPositionAndDirection();
|
2024-06-18 18:16:19 +00:00
|
|
|
return TaskStatus.Success;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|