A class in Root.Township, Alta.Caves.
Client effect for a PickupDock: when an item is about to dock, a visual copy of it plays a dissolve and is released. Removes itself on a headless server.
Constructors
| Member | What it is |
|---|
DockedDissolver() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private float dematerializeDuration | Length of the dissolve in seconds. |
private Texture dissolveTexture | Noise texture used by the dissolve. |
private Shader shader | Dissolve shader applied to the visual double. |
private PickupDock targetDock | The dock whose incoming items dissolve. |
Methods
2 private and internal methods
| Member | What it is |
|---|
private void DissolveItem(Interactor interactor, Pickup pickup, PickupDock dock) | Spawns a visual double of the docking pickup and dematerializes it with the dissolve shader. |
private void Start() | Destroys this component on a headless server; otherwise hooks the dock's PreItemDocked event. |