Exemple #1
0
 private void CreateBeginner()
 {
     Beginner     = new LevelObject();
     Beginnerdown = new LevelObject();
     Beginner.SetDelay(3);
     Beginner.AddBottomBlock();
     Beginner.AddHighJump();
     Beginner.AddTightSqueeze();
     Beginner.AddWall();
     Beginnerdown.SetDelay(3);
     Beginnerdown.AddBottomBlock();
     Beginnerdown.AddHighTightSqueeze();
     Beginnerdown.AddWall();
     Beginnerdown.AddBottomBlock();
 }
Exemple #2
0
    private void PickRandomSimpleBlock(LevelObject l)
    {
        int rand = Random.Range(0, 3);

        switch (rand)
        {
        case 0:
            l.AddBottomBlock();
            break;

        case 1:
            l.AddMiddleBlock();
            break;

        case 2:
            l.AddTopBlock();
            break;

        case 3:
            l.AddWall();
            break;
        }
    }