// ... private void Start() { GlobalEnemyAIController.SetEnemyAI(this); }
private void OnDestroy() { GlobalEnemyAIController.UnsetEnemyAI(this); }