void Start() { //ChangeMoveStrategy(1); _poolMove = new List <IMoveBehavior>(); _moveStrategy = new MoveHorizontalLookDirection(); _attackStrategy = new EnemySemiautomatic(); initPoolAttack(); initPoolMove(); }
public EnemyBehavior SetStrategyAttack(int i) { if (i == 0) { _attackStrategy = new NoAttack(); } else { _attackStrategy = new EnemySemiautomatic(); } return(this); }