Manages the display of detailed information about a specific country. Handles the positioning and updating of the detail display.
More...
Inherits MonoBehaviour.
|
| void | ShowDetails (string name, float co2, float perCap, float population, float area, Vector3 position) |
| | Displays the details with the provided data.
|
| |
| void | ShowDetails () |
| | Activates the details panel.
|
| |
| void | RemoveDetails () |
| | Hides the details panel.
|
| |
| void | SetCountry (string name) |
| | Updates the displayed country name.
|
| |
| void | SetCo2 (float data) |
| | Updates the displayed CO2 emissions.
|
| |
| void | SetPerCap (float data) |
| | Updates the displayed per capita CO2 emissions.
|
| |
| void | SetPopulation (float data) |
| | Updates the displayed population.
|
| |
| void | SetArea (float data) |
| | Updates the displayed area.
|
| |
| void | SetGlobalPosition (Vector3 position) |
| | Updates the global position of the details panel.
|
| |
Manages the display of detailed information about a specific country. Handles the positioning and updating of the detail display.
◆ RemoveDetails()
| void DetailsOnDemand.RemoveDetails |
( |
| ) |
|
◆ SetArea()
| void DetailsOnDemand.SetArea |
( |
float | data | ) |
|
Updates the displayed area.
- Parameters
-
◆ SetCo2()
| void DetailsOnDemand.SetCo2 |
( |
float | data | ) |
|
Updates the displayed CO2 emissions.
- Parameters
-
| data | The CO2 emissions value. |
◆ SetCountry()
| void DetailsOnDemand.SetCountry |
( |
string | name | ) |
|
Updates the displayed country name.
- Parameters
-
| name | The name of the country. |
◆ SetGlobalPosition()
| void DetailsOnDemand.SetGlobalPosition |
( |
Vector3 | position | ) |
|
Updates the global position of the details panel.
- Parameters
-
| position | The new global position. |
◆ SetPerCap()
| void DetailsOnDemand.SetPerCap |
( |
float | data | ) |
|
Updates the displayed per capita CO2 emissions.
- Parameters
-
| data | The per capita CO2 emissions value. |
◆ SetPopulation()
| void DetailsOnDemand.SetPopulation |
( |
float | data | ) |
|
Updates the displayed population.
- Parameters
-
| data | The population value. |
◆ ShowDetails() [1/2]
| void DetailsOnDemand.ShowDetails |
( |
| ) |
|
Activates the details panel.
◆ ShowDetails() [2/2]
| void DetailsOnDemand.ShowDetails |
( |
string | name, |
|
|
float | co2, |
|
|
float | perCap, |
|
|
float | population, |
|
|
float | area, |
|
|
Vector3 | position ) |
Displays the details with the provided data.
- Parameters
-
| name | The name of the country. |
| co2 | The CO2 emissions of the country. |
| perCap | The per capita CO2 emissions of the country. |
| population | The population of the country. |
| area | The area of the country. |
| position | The position to display the details at. |
The documentation for this class was generated from the following file: