Esempio n. 1
0
    public void SetUp(string name, string description, string rewardName, float progressionValue, float targetValue, bool done)
    {
        nameText.text              = name;
        descriptionText.text       = description;
        progressionText.text       = StaticMethodsLibrary.FloatToSingleNumberAfterComma(progressionValue) + "/" + targetValue;
        progressionFill.fillAmount = progressionValue / targetValue;

        rewardText.text = rewardName != "" && rewardName != null ? ("Reward \n" + rewardName) : "No Reward";

        questDoneImage.gameObject.SetActive(done);
    }
Esempio n. 2
0
 public void UpdateProgressionTexts(float travelledDistance, int numberOfKilledEnemies, int numberOfBarellRolls)
 {
     distanceText.text         = "Travelled Distance :\n" + StaticMethodsLibrary.FloatToSingleNumberAfterComma(travelledDistance) + " km";
     destroyedEnemiesText.text = "Killed Enemies :\n" + numberOfKilledEnemies;
 }