excavationgame - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Minigames.Excavation
Inherits from UnityEngine.MonoBehaviour
The main game logic of a brush-based excavation game.
public class ExcavationGame : MonoBehaviour| Name | Description |
|---|---|
| OnAllCompleted | Emitted once all zones are completed. |
| Name | Description |
|---|---|
| EnforceZonesGranularity() | Sets the _granularity of every zone. Used internally for the editor. |
| StartCompletionCheck() | Checks if the average of the draw channel is above the completion threshold and emits the completion event if so. |
| Name | Description |
|---|---|
| GridHeight | Number of vertical segment of the grid. Always a power of two and equal to the GridWidth. |
| GridSize | Number of segments of each axis of the grid. Both values are equal and always a power of two. |
| GridWidth | Number of horizontal segment of the grid. Always a power of two and equal to the GridHeight. |