EnvironmentalPropertyBlock
A class in Root.Township, the global namespace.
Holds the global wind direction and raises an event when it changes.
Constructors
| Member | What it is |
|---|
EnvironmentalPropertyBlock() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private MaterialPropertyBlock propertyBlock | Material property block, not used in this code. |
private static Vector2 windDirection | Backing field for WindDirection. |
Properties
| Member | What it is |
|---|
static Vector2 WindDirection { get; set; } | Global wind direction on the XZ plane; setting it raises WindChanged. |
Events
| Member | What it is |
|---|
static event Action WindChanged | Raised whenever WindDirection is set. |