Class WeaverGameManager
An object used to do actions that are related to the whole game
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class WeaverGameManager : MonoBehaviour
Properties
| Edit this page View SourceCurrentMapZone
Gets the current map zone the player is located in
Declaration
public static MapZone CurrentMapZone { get; }
Property Value
Type | Description |
---|---|
MapZone |
Methods
| Edit this page View SourceFreezeGameTime(TimeFreezePreset)
Freezes the game temporarily. Mainly used when the player gets hit, the enemy is stunned, and more
Declaration
public static void FreezeGameTime(WeaverGameManager.TimeFreezePreset preset)
Parameters
Type | Name | Description |
---|---|---|
WeaverGameManager.TimeFreezePreset | preset | The specific preset to apply |
TriggerGameStateChange()
Declaration
public static void TriggerGameStateChange()
Events
| Edit this page View SourceOnGameStateChange
An event that is called when the game state changes
Declaration
public static event Action<GameState> OnGameStateChange
Event Type
Type | Description |
---|---|
Action<GameState> |