예제 #1
0
 public RotateToExecutable Init(Transform target, IBlackboardComponent blackboard, HiraBlackboardKey locationKey)
 {
     _target      = target;
     _blackboard  = blackboard;
     _locationKey = locationKey;
     return(this);
 }
예제 #2
0
 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);
 }
예제 #4
0
 public void OnReturn()
 {
     _target      = null;
     _blackboard  = null;
     _locationKey = null;
 }