Exemplo n.º 1
0
    void ChooseEnemyDirection(FlyingEnemy flyingEnemy)
    {
        int dir = spawnDirection > -1 ? spawnDirection : r.Next(0, 2);

        if (dir == 0)
        {
            flyingEnemy.startFromLeft();
        }
        else
        {
            flyingEnemy.startFromRight();
        }
    }