Class NotificationUI
Display a temporarily notification on top of screen during gameplay
Implements
Methods
BeforeUpdate()
[2/4] This function is called every frame when entity is in stage. Prioritize using this function to update physics logic.
Declaration
public override void BeforeUpdate()
Overrides
OnActivated()
This function is called when entity enter the stage
Declaration
public override void OnActivated()
Overrides
SpawnNotification(string, int)
Require a notification. Call this function once for a single notification.
Declaration
public static void SpawnNotification(string content, int icon = -2147483648)
Parameters
Type | Name | Description |
---|---|---|
string | content | Text content of the notification |
int | icon | Artwork sprite ID for the notification. Set to int.MinValue if no icon should be display. |
Update()
[3/4] This function is called every frame when entity is in stage. Prioritize using this function to update physics logic.
Declaration
public override void Update()
Overrides
UpdateUI()
Declaration
public override void UpdateUI()