27 lines
577 B
C#
27 lines
577 B
C#
using System;
|
|
using Unity.Behavior;
|
|
using UnityEngine;
|
|
using Action = Unity.Behavior.Action;
|
|
using Unity.Properties;
|
|
|
|
[Serializable, GeneratePropertyBag]
|
|
[NodeDescription(name: "FindClosestAttackTarget", story: "Agent finds Target", category: "Action", id: "c335cdd99cc546403f5ca3cd5c5e2fa3")]
|
|
public partial class FindClosestAttackTargetAction : Action
|
|
{
|
|
|
|
protected override Status OnStart()
|
|
{
|
|
return Status.Running;
|
|
}
|
|
|
|
protected override Status OnUpdate()
|
|
{
|
|
return Status.Success;
|
|
}
|
|
|
|
protected override void OnEnd()
|
|
{
|
|
}
|
|
}
|
|
|