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); }
public void CollectOrb() { orbs++; UpdateOrbText(); map.Collected(RoomType.Orb); }