public RotateToExecutable Init(Transform target, IBlackboardComponent blackboard, HiraBlackboardKey locationKey) { _target = target; _blackboard = blackboard; _locationKey = locationKey; return(this); }
public PickRandomLocationExecutable Init(IBlackboardComponent blackboard, HiraBlackboardKey key, string locationName) { _blackboard = blackboard; _key = key.Index; _locationName = locationName; return(this); }
public StaticMoveToExecutable Init(NavMeshAgent navMeshAgent, IBlackboardComponent blackboard, HiraBlackboardKey targetPositionKey, bool followTarget, float speed, float tolerance) { _navMeshAgent = navMeshAgent; _blackboard = blackboard; _targetPositionKey = targetPositionKey.Index; _followTarget = followTarget; _speed = speed; _tolerance = tolerance; return(this); }
public void OnReturn() { _target = null; _blackboard = null; _locationKey = null; }