CapersProject/Assets/02.Scripts/BehaviorTree/Npc/Customer/Action/SetTableSeatDirection.cs

29 lines
686 B
C#
Raw Normal View History

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 void OnStart()
{
_customer.SetTableSeatPositionAndDirection();
}
public override TaskStatus OnUpdate()
{
return TaskStatus.Success;
}
}
}