Skip to main content

ContainerLiquidReceiver

A class in Root.Township, Alta.Liquid.

Put on a collider of a liquid container so that pouring particles hitting it pour into that container.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private ILiquidContainer containerBacking field for Container.

Properties​

MemberWhat it is
ILiquidContainer Container { get; }The container that receives the liquid.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Finds the container in the parents.
private void OnParticleCollision(GameObject other)When pouring particles hit, tells their pourable container to pour into this one.