32 lines
838 B
C#
32 lines
838 B
C#
using System;
|
|
using BehaviorDesigner.Runtime.Tasks;
|
|
using DDD.Npcs.Customers;
|
|
using DDD.Tycoons;
|
|
using Action = BehaviorDesigner.Runtime.Tasks.Action;
|
|
|
|
namespace DDD.BehaviorTrees.Actions
|
|
{
|
|
[TaskCategory("Custom/Npc/Customer")]
|
|
[Serializable]
|
|
public class FindTable : Action
|
|
{
|
|
// private Customer _customer;
|
|
//
|
|
// public override void OnAwake()
|
|
// {
|
|
// _customer = GetComponent<Customer>();
|
|
// }
|
|
//
|
|
// public override void OnStart()
|
|
// {
|
|
// CustomerManager.Instance.TryFindEmptySeat(_customer);
|
|
// }
|
|
//
|
|
// public override TaskStatus OnUpdate()
|
|
// {
|
|
// if (_customer.TableSeat == null) return TaskStatus.Running;
|
|
//
|
|
// return TaskStatus.Success;
|
|
// }
|
|
}
|
|
} |