Class that controls the panels that shows the information of each stored place.
More...
|
void | chooseStoredPlace (int index) |
| This method should be called when the user choose one of the stored places. It selects the stored place that is on the index-th position. More...
|
|
void | deleteStoredPlace (int index) |
| This method should be called when the user clicks on the delete one stored place button. It deletes the stored information of the index-th stored place. It also updates the information of the panel that shows its information. More...
|
|
|
void | Awake () |
| This method is called before the first frame. It sets the information of each stored place on the correspondent element of the panel, and add a reference of the StoredPlace object that is on the index-th position to the storedPlaces_ list. If there isnt any place stored on one of the index it will add null to the storedPlaces_ list. More...
|
|
void | OnDestroy () |
| this method is called when the current GameObject is destroyed. It makes the StoredPlacesControllerObject_ static property null again. More...
|
|
|
GameObject | storedPlacesPanel_ |
| Reference to the GameObject that contains the panel that shows the stored places. More...
|
|
List< StoredPlace > | storedPlaces_ |
| List of all the StoredPlaces that are shown by the panel. More...
|
|
string | defaultText_ = "You have this empty field to store a place for visit it when you don't have internet conection." |
| The text that will be shown when one of the spaces for store a place is free. More...
|
|
Class that controls the panels that shows the information of each stored place.
◆ Awake()
void StoredPlacesController.Awake |
( |
| ) |
|
|
private |
This method is called before the first frame. It sets the information of each stored place on the correspondent element of the panel, and add a reference of the StoredPlace object that is on the index-th position to the storedPlaces_ list. If there isnt any place stored on one of the index it will add null to the storedPlaces_ list.
◆ chooseStoredPlace()
void StoredPlacesController.chooseStoredPlace |
( |
int |
index | ) |
|
This method should be called when the user choose one of the stored places. It selects the stored place that is on the index-th position.
- Parameters
-
int | index of which place is chosen the current user. |
◆ deleteStoredPlace()
void StoredPlacesController.deleteStoredPlace |
( |
int |
index | ) |
|
This method should be called when the user clicks on the delete one stored place button. It deletes the stored information of the index-th stored place. It also updates the information of the panel that shows its information.
- Parameters
-
int | index of which place the user wants to delete. |
◆ OnDestroy()
void StoredPlacesController.OnDestroy |
( |
| ) |
|
|
private |
this method is called when the current GameObject is destroyed. It makes the StoredPlacesControllerObject_ static property null again.
◆ choosenStoredPlace_
StoredPlace that the user has chosen. Its a static property to keep the information between scenes.
◆ defaultText_
string StoredPlacesController.defaultText_ = "You have this empty field to store a place for visit it when you don't have internet conection." |
|
private |
The text that will be shown when one of the spaces for store a place is free.
◆ storedPlaces_
List of all the StoredPlaces that are shown by the panel.
◆ StoredPlacesControllerObject_
◆ storedPlacesPanel_
GameObject StoredPlacesController.storedPlacesPanel_ |
|
private |
Reference to the GameObject that contains the panel that shows the stored places.
The documentation for this class was generated from the following file: