Exemple #1
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);
 }
Exemple #2
0
 public AIRotationMoveManager(NavMeshAgent objectAgent, TransformMoveManagerComponentV3 AITransformMoveManagerComponentV3, AIDestinationManager AIDestinationManagerRef)
 {
     this.objectAgent = objectAgent;
     this.AITransformMoveManagerComponentV3 = AITransformMoveManagerComponentV3;
     this.AIDestinationManagerRef           = AIDestinationManagerRef;
 }