Class GameManager
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
[DefaultExecutionOrder(-100)]
public class GameManager : Singleton<GameManager>
- Inheritance
-
objectGameManager
- Inherited Members
Fields
- InteractiveLayerMask
Layer mask for all interactive objects, including monsters, items, interactables, doors, heroes, handles, inventories, and items in inventory.
Properties
Methods
- CloseCharacterScreen()
Close the OneJS Character Screen overlay. Safe no-op if the script engine or global hook is not yet available.
- OpenCharacterScreen()
Open the OneJS Character Screen overlay. All callers (HeroController double-click, the legacy UICharacterScreen.OnEnable bridge, inspector-wired buttons via UICharacterScreen.Show) should funnel through this method so there is a single point of entry to the new UI.
- OpenPrestigeTree()
Open the OneJS Prestige Tree (Grimoire) overlay. Bridges C# UGUI buttons (death screen, etc.) to the global JS handler registered by App.tsx (
__grindfest.openPrestigeTree). Safe to call before the script engine is initialised — silently no-ops if the engine or the global hook is missing.
- TryGoSinglePlayer()
If you are not connected yet, turns of the network and starts the single player