private void Start() { AnimationModule = GetComponent <AnimationModule_Enemy>(); if (AnimationModule) { AnimationModule.OnHitAnimationStart += StopAgent; AnimationModule.OnHitAnimationEnd += UnstopAgent; } }
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>(); }