Exemple #1
0
    public void setupDropdown(JarProperty currentProperty)
    {
        dropdown.ClearOptions();

        foreach (JarProperty property in propertyDB.getPropertiesByType(propertyType))
        {
            dropdown.AddOptions(new List <string> {
                property.objectName
            });
            if (property == currentProperty)
            {
                dropdown.SetValueWithoutNotify(dropdown.options.Count - 1);
            }
        }
    }
    public void setupTooltip(JarProperty property)
    {
        Title.text = property.objectName;

        breedingSpeed    = property.breedingSpeed;
        fertility        = property.fertility;
        survivability    = property.survivability;
        carryingCapacity = property.carryingCapacity;
        mutationRate     = property.mutationRate;

        selectiveFitnessAdvantage       = property.selectiveFitnessAdvantage;
        selectiveSurvivabilityAdvantage = property.selectiveSurvivabilityAdvantage;
        statModification = property.statModification;

        setupTooltip();
    }
Exemple #3
0
 public void changeProperty(JarProperty newProperty)
 {
     tooltipManagers[newProperty.propertyType].changeProperty(newProperty);
     tooltipManagers[newProperty.propertyType].gameObject.GetComponent <Text>().text =
         EnumHelper.GetDescription(newProperty.propertyType) + ": " + newProperty.name;
 }
 public void changeJarProperty(JarProperty.PropertyType propertyType, JarProperty property)
 {
     jarProperties[propertyType] = property;
     setJarStats();
 }
Exemple #5
0
 public void changeProperty(JarProperty jarProperty)
 {
     this.jarProperty = jarProperty;
 }