public override void SetFlow(int x) { this.Flow = x; if (OutputA != null) { OutputA.SetFlow(Ratio * Flow); } if (OutputB != null) { OutputB.SetFlow((100 - Ratio) * Flow); } }
public void ChangeRatio(int ratio) { Ratio = ratio; if (OutputA != null) { OutputA.SetFlow(Ratio * Flow); } if (OutputB != null) { OutputB.SetFlow((100 - Ratio) * Flow); } }