コード例 #1
0
 public ResetTimeoutNode(
     IActorStateModel actorStateModel,
     TimeoutDataComponent.Storage storage)
 {
     _storage = storage;
     _timeoutDataComponent = actorStateModel.Get <TimeoutDataComponent>();
 }
コード例 #2
0
 public FollowAvatarNode(IActorStateModel actorStateModel)
 {
     _actorStateModel        = actorStateModel;
     _blackBoard             = _actorStateModel.Get <BlackBoardDataComponent>();
     _sensorDataComponent    = _actorStateModel.Get <SensorDataComponent>();
     _transformDataComponent = _actorStateModel.Get <TransformDataComponent>();
     _timeoutDataComponent   = _actorStateModel.Get <TimeoutDataComponent>();
 }
コード例 #3
0
 public IdleTimeoutNode(
     IActorStateModel actor,
     double timeoutSeconds,
     TimeoutDataComponent.Storage storage)
 {
     _timeoutDataComponent = actor.Get <TimeoutDataComponent>();
     _timeoutSeconds       = timeoutSeconds;
     _storage = storage;
 }
コード例 #4
0
 public IdleTimeoutRandomNode(
     IActorStateModel actor,
     double timeoutSeconds,
     TimeoutDataComponent.Storage storage,
     double randomChance)
 {
     _timeoutDataComponent = actor.Get <TimeoutDataComponent>();
     _timeoutSeconds       = timeoutSeconds;
     _storage      = storage;
     _randomChance = randomChance;
 }