예제 #1
0
 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);
     }
 }
예제 #2
0
 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();
 }