예제 #1
0
    public void SetChoiceDisplay(ChoiceOption choice, PlayerData.UpgradeType type)
    {
        string text = "";

        switch (type)
        {
        case PlayerData.UpgradeType.Collect_Speed:
            text = "Collect Speed Lv. ";
            break;

        case PlayerData.UpgradeType.Collect_Radius:
            text = "Collect Radius Lv. ";
            break;

        case PlayerData.UpgradeType.Collect_Efficiency:
            text = "Collect Efficiency Lv. ";
            break;

        case PlayerData.UpgradeType.Collect_Weight:
            text = "Collect Weight Lv. ";
            break;

        case PlayerData.UpgradeType.Particle_Speed:
            text = "Particle Speed Lv. ";
            break;

        case PlayerData.UpgradeType.Particle_Stability:
            text = "Particle Stability Lv. ";
            break;

        case PlayerData.UpgradeType.Time_Dilation:
            text = "Time Dilation Lv. ";
            break;
        }

        if (Game.Instance.playerData.IsMaxLevel(type))
        {
            choice.SetText(text + "MAX");
        }
        else
        {
            choice.SetText(text + Game.Instance.playerData.GetUpgradeLevel(type));
        }
    }
예제 #2
0
    public void SetCraftableChoice(ChoiceOption choice, Craftable c)
    {
        int amo = Game.Instance.playerData.GetCraftableAmount(c);

        choice.SetText(c.GetName() + " (" + amo + ")\n<size=80%>    Price: $" + c.GetPrice());
    }