Property | Type | Description |
---|
Method | Description | |
---|---|---|
Awake ( ) : void | ||
CreateMapIcons ( ) : void |
Creates the maps icon using the given prefabs (assumes prefabs aren't null)
|
|
OnDisable ( ) : void | ||
OnEnable ( ) : void | ||
OnWillRenderCanvas ( ) : void |
Callback function for when cavas is going to be rendered. Will update the minimap's icons when called
|
|
PopulateCacheLists ( ) : void |
Retrieves the transforms for all players, bases, and repair zones within the map
|
|
PositionIconToTransform ( |
Positions an icon to the given transform, in minimap-space
|
|
SetupCaptureCamera ( ) : void |
Sets up the capture camera using the level's "Level Bounds" prefab
|
|
SetupScoreIndicators ( ) : void |
Gets references to the score bar scripts through this game object's children (changing the hierachy in any way for the minimap will break this code) and presets their score percentages to zero
|
|
Start ( ) : void | ||
UpdateBaseIcons ( ) : void | ||
UpdatePlayerIcons ( ) : void |
Updates all player icon's canvas position and rotation, as well as smoothly interpolates their scale as players carry more or less passengers
|
|
UpdatePrisonShipIcon ( ) : void |
Updates the prison ship icon, and will flash colour tint when passengers dropping, are detected
|
|
UpdateScoreIndicators ( ) : void |
Updates animation speed of score indicators for changes within the editor to be reflected, or other gameplay elements affecting it. Also smoothly interpolates score percentages as player score increases
|
public PositionIconToTransform ( |
||
a_iconTrans | Rectangle transform of the icon | |
a_transform | Transform to move this icon to | |
return | void |