/// <summary> /// Initialize a state. Call once. /// </summary> /// <param name="enemyProperty"></param> public virtual void Initialize(EnemyProperty enemyProperty) { if (enemyProperty == null) { Debug.LogError("Enemy Property for AI is null!\n"); } _AIController = enemyProperty.GetComponent <BaseAIController> (); if (_AIController == null) { Debug.LogError("Enemy AI Controller is null!\n"); } _stateEnd = false; }