public EnterScreenNode( IActorStateModel actorStateModel, AiMovementController aiMovementController, ScreenSizeModel screenSizeModel) { _aiMovementController = aiMovementController; _screenSizeModel = screenSizeModel; _originDataComponent = actorStateModel.Get <OriginDataComponent>(); _transformDataComponent = actorStateModel.Get <TransformDataComponent>(); }
public WanderNode( IActorStateModel actorStateModel, IRandomNumberService randomNumberService, ScreenSizeModel screenSizeModel) { _randomNumberService = randomNumberService; _screenSizeModel = screenSizeModel; _blackBoard = actorStateModel.Get <BlackBoardDataComponent>(); _originDataComponent = actorStateModel.Get <OriginDataComponent>(); _wanderDataComponent = actorStateModel.Get <WanderDataComponent>(); _transformDataComponent = actorStateModel.Get <TransformDataComponent>(); }
public NovatarFacade( IMonoEntity entity, IActorStateModel actor, BehaviourTree behaviourTree, IPauseStateModel pauseStateModel) : base(entity, actor, pauseStateModel) { _behaviourTree = behaviourTree; _originDataComponent = Actor.Get <OriginDataComponent>(); _relationshipDataComponent = Actor.Get <RelationshipDataComponent>(); _resettableNodes = _behaviourTree.Nodes .OfType <IResettableNode>() .ToList(); _originDataComponent.SpawnPosition .Subscribe(Entity.SetPosition) .AddTo(Disposer); }