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
| Member | What it is |
|---|
ContainerLiquidReceiver() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Properties
| Member | What it is |
|---|
ILiquidContainer Container { get; } | The container that receives the liquid. |
Methods
2 private and internal methods
| Member | What 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. |