VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
MonologueManager Class Reference
Inheritance diagram for MonologueManager:
Collaboration diagram for MonologueManager:

Public Member Functions

void LoadTextBinding (string key, Func< string[], string > func)
 Registers a text binding key and its associated function for dynamic text replacement.
bool UnloadTextBinding (string key)
 Removes a registered text binding by key.
void StartMonolog (TextAsset text)
 Starts a new monologue sequence and displays the first line.

Data Fields

TMP_Text textLabel
GameObject nextImage
GameObject chatContainer
int typingSpeed = 15

Static Public Attributes

static MonologueManager Instance

Member Function Documentation

◆ LoadTextBinding()

void MonologueManager.LoadTextBinding ( string key,
Func< string[], string > func )
inline

Registers a text binding key and its associated function for dynamic text replacement.

Parameters
keyUnique identifier for the text binding.
funcFunction to call when the binding is encountered.

◆ StartMonolog()

void MonologueManager.StartMonolog ( TextAsset text)
inline

Starts a new monologue sequence and displays the first line.

Parameters
textTextAsset containing the monologue script.

◆ UnloadTextBinding()

bool MonologueManager.UnloadTextBinding ( string key)
inline

Removes a registered text binding by key.

Parameters
keyText binding key to remove.
Returns
if the binding existed and was removed successfully

Field Documentation

◆ chatContainer

GameObject MonologueManager.chatContainer

◆ Instance

MonologueManager MonologueManager.Instance
static

◆ nextImage

GameObject MonologueManager.nextImage

◆ textLabel

TMP_Text MonologueManager.textLabel

◆ typingSpeed

int MonologueManager.typingSpeed = 15

The documentation for this class was generated from the following file: