Roman aa6e1ebe90 任务:创建项目,引入部分将会用到的插件和包
1.引入URP
2.引入InputSystem
3.引入Fungus
4.引入DoTween
5.引入CinemaMachine
6.引入BehaviorTree
7.引入BehaviorTree动作包
8.配置了渲染管线资源

🥵🥵🥵🥵🥵
2021-11-21 15:14:51 +08:00

43 lines
1.4 KiB
C#

using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Movement
{
public abstract class Movement : Action
{
/// <summary>
/// Set a new pathfinding destination.
/// </summary>
/// <param name="destination">The destination to set.</param>
/// <returns>True if the destination is valid.</returns>
protected abstract bool SetDestination(Vector3 destination);
/// <summary>
/// Specifies if the rotation should be updated.
/// </summary>
/// <param name="update">Should the rotation be updated?</param>
protected abstract void UpdateRotation(bool update);
/// <summary>
/// Does the agent have a pathfinding path?
/// </summary>
/// <returns>True if the agent has a pathfinding path.</returns>
protected abstract bool HasPath();
/// <summary>
/// Returns the velocity of the agent.
/// </summary>
/// <returns>The velocity of the agent.</returns>
protected abstract Vector3 Velocity();
/// <summary>
/// Has the agent arrived at the destination?
/// </summary>
/// <returns>True if the agent has arrived at the destination.</returns>
protected abstract bool HasArrived();
/// <summary>
/// Stop pathfinding.
/// </summary>
protected abstract void Stop();
}
}