Example #1
0
 public void CollectAbility(int ability)
 {
     if (ability == 1)
     {
         canJump = true;
     }
     if (ability == 2)
     {
         canDoubleJump = true;
     }
     if (ability == 3)
     {
         canDash = true;
     }
     if (ability == 4)
     {
         map.canViewMap = true;
     }
     map.Collected(RoomType.Ability);
 }
Example #2
0
 public void CollectOrb()
 {
     orbs++;
     UpdateOrbText();
     map.Collected(RoomType.Orb);
 }