excavationgame - eisclimber/ExPresS-XR GitHub Wiki

ExcavationGame

Class in ExPresSXR.Minigames.Excavation

Inherits from UnityEngine.MonoBehaviour

Summary

The main game logic of a brush-based excavation game.

public class ExcavationGame : MonoBehaviour

Fields

Name Description
OnAllCompleted Emitted once all zones are completed.

Methods

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.

Properties

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.
⚠️ **GitHub.com Fallback** ⚠️