Skip to main content

PouringStrengthController

A class in Root.Township, Alta.Liquid.

Works out how hard a PourableContainer pours from how far it's tipped, with an optional boost when fully pouring. Sits next to the container.

Constructors​

MemberWhat it is
PouringStrengthController()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

MemberWhat it is
protected PourableContainer pouringContainerThe container on the same object.
protected float pouringMultiplierBase multiplier on pour strength.
2 private and internal fields
MemberWhat it is
private float fullyPouringStrengthMultiplierStrength multiplier while fully pouring (default 15).
private bool isAllowingFullyPouringWhether the full-pour boost can apply.

Methods​

MemberWhat it is
virtual float GetPouringStrength(out bool isFullyPouring)Returns the pour strength: multiplier times the surface's tipping value times the full-pour boost.
protected void GetFullyPouringValues(out bool isFullyPouring, out float fullyPouringMultiplier)Reports whether the container is fully pouring (if allowed) and the multiplier to use.
1 private and internal method
MemberWhat it is
private void Awake()Finds the PourableContainer on the same object.

Used in​

Members of other types that take, return or hold a PouringStrengthController: