/// <summary> /// This method is called when switching to this state. /// </summary> /// <param name="enemy"></param> public virtual void OnBegin(EnemyController enemy) { this.enemy = enemy; }
/// <summary> /// Called upon entering the state, sets the reload time /// </summary> /// <param name="enemy"></param> public override void OnBegin(EnemyController enemy) { base.OnBegin(enemy); reloadTimeRemaining = reloadTime; }