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

        initPoolAttack();
        initPoolMove();
    }
예제 #2
0
    public EnemyBehavior SetStrategyAttack(int i)
    {
        if (i == 0)
        {
            _attackStrategy = new NoAttack();
        }
        else
        {
            _attackStrategy = new EnemySemiautomatic();
        }

        return(this);
    }