public static void PowerUpdateStructureChangeReact(IElectricityIO Supply) { ElectricityFunctions.CircuitSearchLoop(Supply, Supply.GameObject().GetComponent <IProvidePower>()); if (Supply.Data.ChangeToOff) { Supply.Data.ChangeToOff = false; TurnOffSupply(Supply); Supply.InData.ControllingDevice.TurnOffCleanup(); ElectricalSynchronisation.RemoveSupply(Supply.InData.ControllingUpdate, Supply.InData.Categorytype); } }
public void PowerUpdateStructureChangeReact() { ElectricityFunctions.CircuitSearchLoop(this, this); }