General game UI links. More...
Public Member Functions | |
void | Awake () |
Initialises UI layers. | |
void | Update () |
Updates the current layer mask. | |
void | SplitScreen () |
Splits the screen based on the global game settings. | |
Static Public Member Functions | |
static Rect | HUDBounds (int playerID) |
Returns bound for the specified player. | |
static string | FormatTime (float t) |
Formats a time string. | |
static void | DrawCropped (Rect drawRegion, Rect offset, Texture tex) |
Draws a cropped image. | |
static void | GizmoRect (float rx, float ry, float rw, float rh) |
Utility for drawing a simple rectangle in the scene. | |
static void | GizmoTexture (Rect b, Texture texture) |
Draws an image in the scene view. | |
Public Attributes | |
UIBase | menu |
Link to pause menu UI. | |
UIBase | map |
Link to map UI. | |
UIBase | hud |
Link to HUD UI. | |
UIBase | scores |
Link to final scoreboard UI. | |
UIBase | status |
Link to player status message UI. |
General game UI links.
void GameUI.Awake | ( | ) |
Initialises UI layers.
static void GameUI.DrawCropped | ( | Rect | drawRegion, | |
Rect | offset, | |||
Texture | tex | |||
) | [static] |
Draws a cropped image.
static string GameUI.FormatTime | ( | float | t | ) | [static] |
Formats a time string.
static void GameUI.GizmoRect | ( | float | rx, | |
float | ry, | |||
float | rw, | |||
float | rh | |||
) | [static] |
Utility for drawing a simple rectangle in the scene.
static void GameUI.GizmoTexture | ( | Rect | b, | |
Texture | texture | |||
) | [static] |
Draws an image in the scene view.
static Rect GameUI.HUDBounds | ( | int | playerID | ) | [static] |
Returns bound for the specified player.
void GameUI.SplitScreen | ( | ) |
Splits the screen based on the global game settings.
void GameUI.Update | ( | ) |
Updates the current layer mask.
Link to HUD UI.
Link to map UI.
Link to pause menu UI.
Link to final scoreboard UI.
Link to player status message UI.