public override void GetProperties() { GameObject propertiesContainer = GameObject.Find("PropertiesWindowContainer"); EditObjectProperties script = propertiesContainer.GetComponent <EditObjectProperties>(); script.AddResult("CurrentPropertyLabel", _ledDiodeComponent.getCurrent().ToString(CultureInfo.InvariantCulture), "A"); }
public override void GetProperties() { GameObject propertiesContainer = GameObject.Find("PropertiesWindowContainer"); EditObjectProperties script = propertiesContainer.GetComponent <EditObjectProperties>(); script.AddString("ComponentNameLabel", _name, SetName); script.AddResult("VoltagePropertyLabel", ResistorComponent.getVoltageDelta().ToString(CultureInfo.InvariantCulture), "V"); }
public override void GetProperties() { GameObject propertiesContainer = GameObject.Find("PropertiesWindowContainer"); EditObjectProperties script = propertiesContainer.GetComponent <EditObjectProperties>(); script.AddString("ComponentNameLabel", _name, SetName); script.AddNumeric("InductancePropertyLabel", Inductance.ToString(), Inductance.GetType().ToString(), SetInductance, false); script.AddBoolean("TrapezoidalPropertyLabel", IsTrapezoidal.ToString(), SetTrapezoidal); script.AddResult("InductancePropertyLabel", "15.6", "Ohm"); }