public override void ResistanceInput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance, IntrinsicElectronicData ComingFrom) { Resistance = InData.ControllingDevice.ModifyResistanceInput(Resistance, SourceInstance, ComingFrom); if (Logall) { Logger.Log("this > " + this + "ResistanceInput, Resistance > " + Resistance + " SourceInstance > " + SourceInstance + " ComingFrom > " + ComingFrom, Category.Electrical); } InputOutputFunctions.ResistanceInput(Resistance, SourceInstance, ComingFrom, InData); }
/// <summary> /// Pass resistance with GameObject of the Machine it is heading toward /// </summary> public virtual void ResistanceInput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance, IntrinsicElectronicData ComingFrom) { if (Logall) { Logger.Log("this > " + this + "ResistanceInput, Resistance > " + Resistance + " SourceInstance > " + SourceInstance + " ComingFrom > " + ComingFrom, Category.Electrical); } InputOutputFunctions.ResistanceInput(Resistance, SourceInstance, ComingFrom, InData); }
/// <summary> /// Pass resistance with GameObject of the Machine it is heading toward /// </summary> public virtual void ResistanceInput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance, IntrinsicElectronicData ComingFrom) { if (Present != null) { Present.ResistanceInput(Resistance, SourceInstance, ComingFrom); } else { InputOutputFunctions.ResistanceInput(Resistance, SourceInstance, ComingFrom, this); } }