Exemplo n.º 1
0
    public void Display()
    {
        string text = trait.GetTraitName() + "\n\n" + Enum.GetName(typeof(RarityOfTrait), trait.GetRarityOfTrait()) + "\n";

        text            += "E:" + trait.GetTraitEnergy() + "\n" + "P:" + currentPrice + "₥" + "\n" + "S:" + currentSympathy + "\n" + "Owned: " + amountOwned;
        description.text = text;
    }
Exemplo n.º 2
0
    //public void Influence()
    //{
    //    influence.Apply();
    //}
    public string GetNewsDescription(Trait trait)
    {
        string text = "";

        if (societyName == "Constagram")
        {
            text += "- Trait \"" + trait.GetTraitName().ToUpper() + "\" Increases its PRICE in the ANOMA";
        }
        else if (societyName == "Pewtuber")
        {
            text += "- Trait \"" + trait.GetTraitName().ToUpper() + "\" Increases its VOLATILITY in the ANOMA";
        }
        else if (societyName == "Today")
        {
            text += "- Trait \"" + trait.GetTraitName().ToUpper() + "\" Scales up its SYMPATHY in the ANOMA";
        }
        else
        {
            Debug.LogError("invalid societyName");
        }

        return(text);
    }