예제 #1
0
 public void SetUp(IEnumerable <DestinationPoint> destinations, HealthController healthController, WinLoseController winLoseController, IInstantiator instantiator)
 {
     AnimationComponent  = new AnimationComponent(_animator);
     NavigationComponent = new NavigationComponent(_navMeshAgent, destinations, transform, _syncTransform, healthController, winLoseController, _hitEffect, instantiator);
     PhysicsComponent    = new PhysicsComponent(gameObject.GetComponentsInChildren <Rigidbody>(), AnimationComponent, NavigationComponent);
     StunComponent       = new StunComponent(PhysicsComponent, _onStun);
     NavigationComponent.Init(StunComponent);
 }
예제 #2
0
 public void Init(StunComponent stunComponent)
 {
     _stunComponent = stunComponent;
 }
예제 #3
0
 private void Update()
 {
     StunComponent.Tick();
     NavigationComponent.Tick();
 }