示例#1
0
    public void UpgradeFishingRodLevel()
    {
        switch (currentFishingRodUpgrade)
        {
        case (FishingRodUpgrade.WOOD):
            currentFishingRodUpgrade = FishingRodUpgrade.SILVER;
            SetCurrentFishingRod();
            break;

        case (FishingRodUpgrade.SILVER):
            currentFishingRodUpgrade = FishingRodUpgrade.IRON;
            SetCurrentFishingRod();
            break;

        case (FishingRodUpgrade.IRON):
            currentFishingRodUpgrade = FishingRodUpgrade.DIAMOND;
            SetCurrentFishingRod();
            break;

        case (FishingRodUpgrade.DIAMOND):
            currentFishingRodUpgrade = FishingRodUpgrade.TITANIUM;
            SetCurrentFishingRod();
            break;

        case (FishingRodUpgrade.TITANIUM):
            SetCurrentFishingRod();
            maxUpgraded = true;
            break;
        }
    }
示例#2
0
    public Upgrade(UpgradeType upgradeType)
    {
        this.upgradeType = upgradeType;
        switch (upgradeType)
        {
        case (UpgradeType.FISHING_ROD): currentFishingRodUpgrade = FishingRodUpgrade.WOOD; SetCurrentUpdateLevel(); break;

        case (UpgradeType.BETTER_BOAT): currentBoatUpgrade = BoatUpgrade.LITTLE_BOAT; SetCurrentUpdateLevel(); break;
        }
        this.maxUpgraded = false;
    }