Пример #1
0
    static string DeriveNameFromType()
    {
        string typeName = "";

        if (ccComposition.GetTypeOfCreature() == "Carnivorous")
        {
            typeName = "carnis";
        }
        else if (ccComposition.GetTypeOfCreature() == "Herbiverous")
        {
            typeName = "planta";
        }
        return(typeName);  // return and capitalise
    }