public void InitialPowerUpdateResistance() { RelatedDevice.InitialPowerUpdateResistance(); foreach (KeyValuePair <IElectricityIO, HashSet <PowerTypeCategory> > Supplie in RelatedDevice.Data.ResistanceToConnectedDevices) { RelatedDevice.ResistanceInput(1.11111111f, Supplie.Key.GameObject(), null); ElectricalSynchronisation.NUCurrentChange.Add(Supplie.Key.InData.ControllingUpdate); } }
public virtual void InitialPowerUpdateResistance() { powerSupply.InitialPowerUpdateResistance(); //this ok foreach (KeyValuePair <ElectricalOIinheritance, HashSet <PowerTypeCategory> > Supplie in powerSupply.Data.ResistanceToConnectedDevices) { powerSupply.ResistanceInput(1.11111111f, Supplie.Key.GameObject(), null); ElectricalSynchronisation.NUCurrentChange.Add(Supplie.Key.InData.ControllingUpdate); } _InitialPowerUpdateResistance(); }