예제 #1
0
    public bool BuyableUnlocked(BUYABLE buyable)
    {
        switch (buyable)
        {
        case BUYABLE.HEARTS:
        case BUYABLE.LAUNCH:
        case BUYABLE.VIEW:
            return(true);

        case BUYABLE.PU_HEARTS:
            return(GetLevelBeaten(BOSS_TYPE.HEART));
        }
        return(false);
    }
예제 #2
0
    public int GetBuyablePrice(BUYABLE buyable)
    {
        switch (buyable)
        {
        case BUYABLE.HEARTS:
            return(GetBouncePrice());

        case BUYABLE.LAUNCH:
            return(GetLaunchPrice());

        case BUYABLE.VIEW:
            return(GetViewPrice());
        }
        return(int.MaxValue);
    }
예제 #3
0
 public void SetBuyableLevel(BUYABLE buyable, int level)
 {
     _buyableLevels[buyable] = level;
 }
예제 #4
0
 public int GetBuyableLevel(BUYABLE buyable)
 {
     return(_buyableLevels[buyable]);
 }