public void ElectricityOutput(int tick, float Current, GameObject SourceInstance) { ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this); ActualCurrentChargeInWire = ElectricityFunctions.WorkOutActualNumbers(this); CurrentInWire = ActualCurrentChargeInWire.Current; ActualVoltage = ActualCurrentChargeInWire.Voltage; EstimatedResistance = ActualCurrentChargeInWire.EstimatedResistant; //EstimatedResistance = ActualCurrentChargeInWire.Voltage; }
public void ElectricityOutput(int tick, float Current, GameObject SourceInstance) { //Logger.Log(Current.ToString() + "yoree"); //Logger.Log (CurrentInWire.ToString () + " How much current", Category.Electrical); ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this); CurrentInWire = ActualCurrentChargeInWire.Current; ActualVoltage = ActualCurrentChargeInWire.Voltage; EstimatedResistance = ActualCurrentChargeInWire.EstimatedResistant; }
public void ElectricityOutput(int tick, float Current, GameObject SourceInstance) { Current = RelatedDevice.ModifyElectricityOutput(tick, Current, SourceInstance); //Logger.Log (CurrentInWire.ToString () + " How much current", Category.Electrical); if (Current != 0) { ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this); } ActualCurrentChargeInWire = ElectricityFunctions.WorkOutActualNumbers(this); CurrentInWire = ActualCurrentChargeInWire.Current; ActualVoltage = ActualCurrentChargeInWire.Voltage; EstimatedResistance = ActualCurrentChargeInWire.EstimatedResistant; }