Exemplo n.º 1
0
 public AIMoveToDestinationSystem(CoreInteractiveObject CoreInteractiveObject, AbstractAIInteractiveObjectInitializerData AIInteractiveObjectInitializerData,
                                  OnAIInteractiveObjectDestinationReachedDelegate OnAIInteractiveObjectDestinationReached)
 {
     this.IsEnabled           = true;
     AIDestinationMoveManager = new AIDestinationMoveManager(CoreInteractiveObject.InteractiveGameObject.Agent, AIInteractiveObjectInitializerData, OnAIInteractiveObjectDestinationReached);
     AISpeedEventDispatcher   = new AISpeedEventDispatcher(CoreInteractiveObject, AIInteractiveObjectInitializerData);
 }
Exemplo n.º 2
0
 public PlayerAgentMoveManager(PlayerInteractiveObject playerAimingInteractiveObject, TransformMoveManagerComponentV3 TransformMoveManagerComponentV3,
                               OnAIInteractiveObjectDestinationReachedDelegate OnDestinationReachedCallback = null)
 {
     this.PlayerInteractiveObject   = playerAimingInteractiveObject;
     this.AIMoveToDestinationSystem = new AIMoveToDestinationSystem(playerAimingInteractiveObject, TransformMoveManagerComponentV3, OnDestinationReachedCallback);
     this.CurrentConstraint         = new NoConstraint();
 }
Exemplo n.º 3
0
 public AIDestinationMoveManager(NavMeshAgent objectAgent, AbstractAIInteractiveObjectInitializerData AIInteractiveObjectInitializerData, OnAIInteractiveObjectDestinationReachedDelegate OnAIInteractiveObjectDestinationReached)
 {
     this.objectAgent = objectAgent;
     lastSuccessfulWorldDestination               = new Vector3(9999999, 99999999, 9999999);
     this.AIInteractiveObjectInitializerData      = AIInteractiveObjectInitializerData;
     this.OnAIInteractiveObjectDestinationReached = OnAIInteractiveObjectDestinationReached;
     currentSpeedAttenuationFactor = AIMovementSpeedDefinition.RUN;
 }
Exemplo n.º 4
0
 public AIMoveToDestinationSystem(CoreInteractiveObject CoreInteractiveObject, TransformMoveManagerComponentV3 AITransformMoveManagerComponentV3,
                                  OnAIInteractiveObjectDestinationReachedDelegate OnAIInteractiveObjectDestinationReached = null)
 {
     this.IsEnabled   = true;
     this.objectAgent = CoreInteractiveObject.InteractiveGameObject.Agent;
     this.AITransformMoveManagerComponentV3 = AITransformMoveManagerComponentV3;
     this.aiPositionMoveManager             = new AIPositionMoveManager(this.objectAgent, () => this.A_AIRotationMoveManager.CurrentLookingTargetRotation, AITransformMoveManagerComponentV3);
     this.AIDestinationManager    = new AIDestinationManager(this.objectAgent, OnAIInteractiveObjectDestinationReached);
     this.A_AIRotationMoveManager = new AIRotationMoveManager(this.objectAgent, AITransformMoveManagerComponentV3, this.AIDestinationManager);
 }
Exemplo n.º 5
0
 public AIDestinationManager(NavMeshAgent objectAgent, OnAIInteractiveObjectDestinationReachedDelegate OnAIInteractiveObjectDestinationReached)
 {
     this.objectAgent = objectAgent;
     this.OnAIInteractiveObjectDestinationReached = OnAIInteractiveObjectDestinationReached;
     this.lastSettedWorldDestination = new Vector3(9999999, 99999999, 9999999);
 }