private void Start()
 {
     AnimationModule = GetComponent <AnimationModule_Enemy>();
     if (AnimationModule)
     {
         AnimationModule.OnHitAnimationStart += StopAgent;
         AnimationModule.OnHitAnimationEnd   += UnstopAgent;
     }
 }
示例#2
0
 void Start()
 {
     MovementModule   = GetComponent <MovementModule_Navigation>();
     AnimationModule  = GetComponent <AnimationModule_Enemy>();
     HealthController = GetComponent <HealthController>();
     if (HealthController)
     {
         HealthController.OnDie += Die;
     }
     if (currentState == null)
     {
         SetState(new ActivationState(this));
     }
 }
 void Start()
 {
     AnimationModule = GetComponent <AnimationModule_Enemy>();
 }