Esempio n. 1
0
    void Start()
    {
        //ChangeMoveStrategy(1);
        _poolMove       = new List <IMoveBehavior>();
        _moveStrategy   = new MoveHorizontalLookDirection();
        _attackStrategy = new EnemySemiautomatic();

        initPoolAttack();
        initPoolMove();
    }
Esempio n. 2
0
    public EnemyBehavior SetStrategyAttack(int i)
    {
        if (i == 0)
        {
            _attackStrategy = new NoAttack();
        }
        else
        {
            _attackStrategy = new EnemySemiautomatic();
        }

        return(this);
    }