Property | Type | Description | |
---|---|---|---|
IsGameOver | bool | ||
IsOnline | bool | ||
PlayerCharacterPrefab | string | ||
crosshairTexture | Texture2D | ||
endingPoint | Transform | ||
levelSong | AudioClip | ||
maxCameraYPoint | Transform | ||
menuButtonStyle | GUIStyle | ||
menuOptionsStyle | GUIStyle | ||
respawnGUIStyle | GUIStyle | ||
skullCrossbonesTexture | Texture2D | ||
solidWhiteTexture | Texture2D | ||
startingPoint | Transform | ||
titleStyle | GUIStyle | ||
weaponAmmoGUIStyle | GUIStyle | ||
weaponBoxIconTextures | Texture2D[] | ||
weaponBoxTexture | Texture2D | ||
weaponHotkeyGUIStyle | GUIStyle |
Property | Type | Description | |
---|---|---|---|
IInputPoller | bool | ||
RPCBossDefeated | void | ||
RPCChatMessage | void | ||
RPCGameOver | void | ||
RPCGiveDrop | void | ||
RPCRespawnDeadPlayer | void | ||
RPCRespawnDeadPlayer | void | ||
RPCRespawnDeadPlayer | void | ||
RPCSetScore | void | ||
RPCSpawnYourself | void |
Method | Description | |
---|---|---|
AdvanceCurrentLevel ( ) : void |
Called on the master client to advance the current level
|
|
Awake ( ) : void | ||
ClearOldestChatMessage ( ) : void |
Called in response to a RPCChatMessage message to clear the oldest chat message from the list ten seconds after a new message was added.
|
|
HideGameMenu ( ) : void |
Called by this component to hide the game menu.
|
|
IInputPoller ( ) : void |
Called when polling has finished
|
|
IInputPoller ( Rect screenArea ) : void |
Called to render the GUI
|
|
OnConnectedToPhoton ( ) : void | ||
OnDisconnectedFromPhoton ( ) : void | ||
OnDisconnectedFromServer ( NetworkDisconnection info ) : void |
Called on the client when the connection was lost or you disconnected from the server.
|
|
OnFailedToConnectToPhoton ( ) : void | ||
OnGUI ( ) : void | ||
OnLeftRoom ( ) : void | ||
OnMasterClientSwitched ( PhotonPlayer player ) : void | ||
OnPhotonInstantiate ( PhotonMessageInfo info ) : void | ||
OnPhotonPlayerConnected ( PhotonPlayer player ) : void | ||
OnPhotonPlayerDisconnected ( PhotonPlayer player ) : void | ||
OnPlayerConnected ( NetworkPlayer player ) : void |
Called on the server whenever a new player has successfully connected.
|
|
OnPlayerDisconnected ( NetworkPlayer player ) : void |
Called on the server whenever a player is disconnected from the server.
|
|
OnReceivedRoomList ( ) : void | ||
OnReceivedRoomListUpdate ( ) : void | ||
OnSelfCharacterDestroyed ( ) : void |
Called from a PlayerCharacter call to DestroyThisCharacter when our player character is destroyed. Here we clear all the player drops, reset the munitions and start the respawn timer. This is only called for the player who actually died.
|
|
PollGameOverStatus ( ) : void |
Called by the master client to poll the game over status.
|
|
PollInputs ( ) : void |
This is called by Update() every frame to poll user inputs. Its primary purpose is to coordinate user inputs so multiple input sinks don't try to act on the player (for example: If you had a scene with five components listening for MouseDown events, they could all act on them in ways that conflict with each other. We just want one component (this one) listening for MouseDown events and dispatching them to the proper component.
|
|
RenderChatBox ( ) : void |
Renders the chat box (but not historic chat messages) and handles chat box typing
|
|
RenderChatMessages ( ) : void |
Renders the chat message history (no message will be older than ten seconds though)
|
|
RenderGameMenu ( ) : void |
Renders the game menu.
|
|
RenderGameOptions ( ) : void |
Renders the game options menu
|
|
RenderGameOver ( ) : void |
Renders the game over screen
|
|
RenderPlayerCrosshair ( ) : void |
Renders the player crosshair.
|
|
RenderRespawnTimer ( ) : void |
Renders the respawning timer.
|
|
RenderScores ( ) : void |
Renders the player names, scores, and whether they're alive
|
|
RenderWeaponBox ( WeaponDirector playerWeapon ) : void |
Renders a single weapon box at the top of the screen
|
|
RenderWeapons ( ) : void |
Renders the weapon boxes at the top of the screen
|
|
RespawnDeadPlayer ( NetworkPlayer player ) : void |
Called from RPCRespawnDeadPlayer to tell a player that they need to spawn themselves. This is only called on the master client.
|
|
RespawnDeadPlayer ( PhotonPlayer player ) : void |
Called from RPCRespawnDeadPlayer to tell a player that they need to spawn themselves. This is only called on the master client.
|
|
RespawnDeadPlayer ( uLink player ) : void |
Called from RPCRespawnDeadPlayer to tell a player that they need to spawn themselves. This is only called on the master client.
|
|
SetSelfCharacter ( PlayerCharacter playerCharacter ) : void |
Called by a class inherited from PlayerCharacter when our character is instantiated
|
|
ShowChatBar ( ) : void |
Called by the local user from the PlayerCharacter component which handles input polling to display the chat bar to begin typing in a message to all players.
|
|
ShowGameMenu ( ) : void |
Called by the local user from the PlayerCharacter component which handles input polling to display the game menu.
|
|
SpawnSelfCharacter ( Vector3 position ) : void |
Called by RPCSpawnYourself for you to spawn your player character. This can be called on any client.
|
|
Start ( ) : void | ||
Update ( ) : void | ||
WarpToScene ( string sceneName ) : void |
Called on the master client to warps to a scene.
|
|
uLink_OnDisconnectedFromServer ( uLink info ) : void |
Called on the client when the connection was lost or you disconnected from the server.
|
|
uLink_OnPlayerConnected ( uLink player ) : void |
Called on the server whenever a new player has successfully connected.
|
|
uLink_OnPlayerDisconnected ( uLink player ) : void |
Called on the server whenever a player is disconnected from the server.
|
|
uLink_OnServerUninitialized ( ) : void |
Called on the server whenever a Disconnect was invoked and has completed.
|
Method | Description | |
---|---|---|
IInputPoller ( ) : bool |
Called to begin polling this input object
|
|
RPCBossDefeated ( ) : void | ||
RPCChatMessage ( string message, float r, float g, float b ) : void | ||
RPCGameOver ( ) : void | ||
RPCGiveDrop ( Vector3 position ) : void | ||
RPCRespawnDeadPlayer ( NetworkPlayer player ) : void | ||
RPCRespawnDeadPlayer ( PhotonPlayer player ) : void | ||
RPCRespawnDeadPlayer ( uLink player ) : void | ||
RPCSetScore ( int newScore ) : void | ||
RPCSpawnYourself ( float x, float y ) : void |
public IInputPoller ( Rect screenArea ) : void | ||
screenArea | Rect | /// The available screen area. You should call GUI.BeginGroup before rendering. /// |
return | void |
public OnDisconnectedFromServer ( NetworkDisconnection info ) : void | ||
info | NetworkDisconnection | /// Info. /// |
return | void |
public OnMasterClientSwitched ( PhotonPlayer player ) : void | ||
player | PhotonPlayer | |
return | void |
public OnPhotonInstantiate ( PhotonMessageInfo info ) : void | ||
info | PhotonMessageInfo | |
return | void |
public OnPhotonPlayerConnected ( PhotonPlayer player ) : void | ||
player | PhotonPlayer | |
return | void |
public OnPhotonPlayerDisconnected ( PhotonPlayer player ) : void | ||
player | PhotonPlayer | |
return | void |
public OnPlayerConnected ( NetworkPlayer player ) : void | ||
player | NetworkPlayer | /// Player. /// |
return | void |
public OnPlayerDisconnected ( NetworkPlayer player ) : void | ||
player | NetworkPlayer | /// Player. /// |
return | void |
public RenderWeaponBox ( WeaponDirector playerWeapon ) : void | ||
playerWeapon | WeaponDirector | /// Player weapon. /// |
return | void |
public RespawnDeadPlayer ( NetworkPlayer player ) : void | ||
player | NetworkPlayer | /// The player to respawn. /// |
return | void |
public RespawnDeadPlayer ( PhotonPlayer player ) : void | ||
player | PhotonPlayer | /// The player to respawn. /// |
return | void |
public RespawnDeadPlayer ( uLink player ) : void | ||
player | uLink | /// The player to respawn. /// |
return | void |
public SetSelfCharacter ( PlayerCharacter playerCharacter ) : void | ||
playerCharacter | PlayerCharacter | /// Player character. /// |
return | void |
public SpawnSelfCharacter ( Vector3 position ) : void | ||
position | Vector3 | /// Position. /// |
return | void |
public static WarpToScene ( string sceneName ) : void | ||
sceneName | string | /// Scene name. /// |
return | void |
public uLink_OnDisconnectedFromServer ( uLink info ) : void | ||
info | uLink | /// Info. /// |
return | void |
public uLink_OnPlayerConnected ( uLink player ) : void | ||
player | uLink | /// Player. /// |
return | void |
public uLink_OnPlayerDisconnected ( uLink player ) : void | ||
player | uLink | /// Player. /// |
return | void |
public uLink_OnServerUninitialized ( ) : void | ||
return | void |
public Texture2D[] weaponBoxIconTextures | ||
return | Texture2D[] |