Class that controls the notification light that powers ON when the current user has a new friendship invitation or a chanllege.
More...
|
void | Start () |
| This method is called on the first frame, it hides or shows the image depending of the result of calling shouldBeShown method. More...
|
|
void | Update () |
| This method is called on each frame, it hides or shows the image depending of the result of calling shouldBeShown method. More...
|
|
bool | shouldBeShown () |
| This method checks the current user methods that the toObserve_ property points. If either the toObserve_ property has an unvalid string or the user data isnt ready it will return false. More...
|
|
|
GameObject | image_ |
| GameObject that stores the image of the yellow circle that alerts the user. More...
|
|
string | toObserve_ |
| string that determinates which property of the current user this class should watch. The allowed values are: More...
|
|
Class that controls the notification light that powers ON when the current user has a new friendship invitation or a chanllege.
◆ shouldBeShown()
bool notificationController.shouldBeShown |
( |
| ) |
|
|
private |
This method checks the current user methods that the toObserve_ property points. If either the toObserve_ property has an unvalid string or the user data isnt ready it will return false.
- Returns
- true if the image_ GameObject should be shown, false in other case.
◆ Start()
void notificationController.Start |
( |
| ) |
|
|
private |
This method is called on the first frame, it hides or shows the image depending of the result of calling shouldBeShown method.
◆ Update()
void notificationController.Update |
( |
| ) |
|
|
private |
This method is called on each frame, it hides or shows the image depending of the result of calling shouldBeShown method.
◆ image_
GameObject notificationController.image_ |
|
private |
GameObject that stores the image of the yellow circle that alerts the user.
◆ toObserve_
string notificationController.toObserve_ |
|
private |
string that determinates which property of the current user this class should watch. The allowed values are:
- friendshipsInvitations: It will check if the user has any new friendship invitation, if that is the case, it will shown the image_ GameObject, in other case it will hide it.
- chanlleges: It will check if the user has any new chanllege to do, if that is the case, it will show the image_ GameObject, in other case it will hide it.
- all: It will check each of the options already mentioned.
The documentation for this class was generated from the following file: