public bool Fill(float amount, Liquid temp) { bool isPosiible = temp.GetVolume() + amount < _volumeOfThisTube; if (isPosiible) { temp.AddVolume(amount); } return(isPosiible); }
public bool Dispense(float amount, Liquid temp) { bool isPosiible = temp.GetVolume() - amount > 0; if (isPosiible) { temp.AddVolume(-amount); } return(isPosiible); }
private void Start() { _water.AddVolume(_waterPreSettings); _oil.AddVolume(_oilPreSettings); _mercury.AddVolume(_mercuryPreSettings); }