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

        initPoolAttack();
        initPoolMove();
    }
Beispiel #2
0
    public EnemyBehavior SetStrategyMove(int i)
    {
        if (i == 0)
        {
            _moveStrategy = new NoMove();
        }
        else
        {
            _moveStrategy = new MoveHorizontalLookDirection();
        }

        return(this);
    }