A class in Root.Township, Alta.Liquid.
Marks pooled liquid particles with the container they came from. Cleared when the particles go back to the pool.
Constructors
| Member | What it is |
|---|
LiquidParticleMarker() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Properties
| Member | What it is |
|---|
ILiquidContainer Container { get; set; } | The container the particles came from. |
Methods
2 private and internal methods
| Member | What it is |
|---|
private void Awake() | Hooks the pooled object's release to clear the container. |
private void ResetContainer(PooledObject pooledObject) | Clears Container when released to the pool. |