Example #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();
 }
Example #2
0
    private void PickRandomComplexBlock(LevelObject l)
    {
        int rand = Random.Range(0, 2);

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

        case 1:
            l.AddHighJump();
            break;

        case 2:
            l.AddHighTightSqueeze();
            break;
        }
    }