This class manages the player state in the lobby.
More...
|
| virtual void | Start () |
| | We use this event to initialize object properties and gui. This is called when a client connects for the first time and when a client goes back to the lobby after a race. More...
|
| |
| virtual void | OnLeftButton () |
| | Describes what happens when pressing the left button More...
|
| |
| virtual void | OnRightButton () |
| | Describes what happens when pressing the right button More...
|
| |
| virtual void | OnVehicleChange (int direction) |
| | Changes the current player vehicle More...
|
| |
| virtual void | OnVehicleChanged (int value) |
| | Describes what happens when the vehicle changes More...
|
| |
| virtual void | OnReady () |
| | Describes what happens when the player chooses the "READY" action in GUI More...
|
| |
| void | OnClientReady (bool readyState) |
| | When player is ready, READY button is disabled. More...
|
| |
This class manages the player state in the lobby.
◆ InitUI()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.InitUI |
( |
| ) |
|
|
protectedvirtual |
◆ OnClientReady()
| void MoreMountains.HighroadEngine.PunLobbyPlayer.OnClientReady |
( |
bool |
readyState | ) |
|
When player is ready, READY button is disabled.
◆ OnLeftButton()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnLeftButton |
( |
| ) |
|
|
virtual |
Describes what happens when pressing the left button
◆ OnPlayerNameChanged()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnPlayerNameChanged |
( |
string |
name | ) |
|
|
protectedvirtual |
Updates the player's name in the textbox
◆ OnReady()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnReady |
( |
| ) |
|
|
virtual |
Describes what happens when the player chooses the "READY" action in GUI
◆ OnRightButton()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnRightButton |
( |
| ) |
|
|
virtual |
Describes what happens when pressing the right button
◆ OnVehicleChange()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnVehicleChange |
( |
int |
direction | ) |
|
|
virtual |
Changes the current player vehicle
- Parameters
-
◆ OnVehicleChanged()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.OnVehicleChanged |
( |
int |
value | ) |
|
|
virtual |
Describes what happens when the vehicle changes
- Parameters
-
◆ ShowSelectedVehicle()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.ShowSelectedVehicle |
( |
| ) |
|
|
protectedvirtual |
Shows the selected vehicle.
◆ Start()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.Start |
( |
| ) |
|
|
virtual |
We use this event to initialize object properties and gui. This is called when a client connects for the first time and when a client goes back to the lobby after a race.
◆ Update()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.Update |
( |
| ) |
|
|
protectedvirtual |
We need to anchor the GameObject's position otherwise when going back from game to lobby, the object would be moved to an incorrect position.
◆ UpdateReadyButtonText()
| virtual void MoreMountains.HighroadEngine.PunLobbyPlayer.UpdateReadyButtonText |
( |
bool |
ready | ) |
|
|
protectedvirtual |
Updates the ready button text.
- Parameters
-
| ready | If set to true ready. |
◆ _currentTrackSelected
| int MoreMountains.HighroadEngine.PunLobbyPlayer._currentTrackSelected |
|
protected |
◆ _playerName
| string MoreMountains.HighroadEngine.PunLobbyPlayer._playerName |
|
protected |
◆ _rectTransform
| RectTransform MoreMountains.HighroadEngine.PunLobbyPlayer._rectTransform |
|
protected |
◆ CancelReadyButtonSprite
| Sprite MoreMountains.HighroadEngine.PunLobbyPlayer.CancelReadyButtonSprite |
◆ elementPosition
| Vector3 MoreMountains.HighroadEngine.PunLobbyPlayer.elementPosition = Vector3.zero |
|
protected |
◆ LeftButton
| Button MoreMountains.HighroadEngine.PunLobbyPlayer.LeftButton |
◆ PlayerName
| Text MoreMountains.HighroadEngine.PunLobbyPlayer.PlayerName |
◆ ReadyButton
| Button MoreMountains.HighroadEngine.PunLobbyPlayer.ReadyButton |
◆ ReadyButtonSprite
| Sprite MoreMountains.HighroadEngine.PunLobbyPlayer.ReadyButtonSprite |
◆ readyToBegin
| bool MoreMountains.HighroadEngine.PunLobbyPlayer.readyToBegin = false |
|
protected |
◆ RightButton
| Button MoreMountains.HighroadEngine.PunLobbyPlayer.RightButton |
◆ VehicleImage
| Image MoreMountains.HighroadEngine.PunLobbyPlayer.VehicleImage |
◆ VehicleText
| Text MoreMountains.HighroadEngine.PunLobbyPlayer.VehicleText |
◆ IsBot
| bool MoreMountains.HighroadEngine.PunLobbyPlayer.IsBot |
|
getset |
◆ Name
| string MoreMountains.HighroadEngine.PunLobbyPlayer.Name |
|
getset |
◆ Position
| int MoreMountains.HighroadEngine.PunLobbyPlayer.Position |
|
getset |
◆ TrackSelected
| virtual int MoreMountains.HighroadEngine.PunLobbyPlayer.TrackSelected |
|
get |
Gets the currently selected track.
The track selected.
◆ VehicleName
| string MoreMountains.HighroadEngine.PunLobbyPlayer.VehicleName |
|
getset |
◆ VehicleSelectedIndex
| int MoreMountains.HighroadEngine.PunLobbyPlayer.VehicleSelectedIndex |
|
getset |
The documentation for this class was generated from the following file:
- E:/Github/Store/HighroadEngine/Assets/HighroadEngine/Common/Scripts/Lobby/Photon/PunLobbyPlayer.cs