Back To Index

UICoreLogic

Jump To Parameters
Jump To Function Definitions


Parameter Definitions

Select the parameter name from below to jump directly to it on this page.

OnCompleteLevelLoading
OnCountdownStarted
OnCountdownStopped
OnCreateRoomFailed
OnCreateRoomSuccess
OnNameEnterFailed
OnNameEnterSuccess
OnNetworkError
OnReceiveRoundTime
OnReconnecting
OnResetEverything
OnSceneLoaded
OnStart
OnStartLoading
OnStartSession
OnWaitToJoinPhotonRoomsLobby
debugging
defaultLevelIndex
fadeInAudio
fadeInSpeed
finalClick
finalClickVolume
loadingBar
loadingDesc
loadingDescText
loadingImageDisplayTime
loadingImages
loadingPageFadeSpeed
loadingParent
loadingTitle
loadingTitleText
mainLoadingImage
mouseClick
mouseClickVolume
mouseEnter
mouseEnterVolume
mouseExit
mouseExitVolume
musicSource
sceneList
selectablePlayers
soundSource
startVolume
teamsUpdated
voiceViewUpdated


OnCompleteLevelLoading

UnityEvent. Called when you have completely loaded a unity scene.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnCountdownStarted

UnityEvent. Called when you receive a start countdown PhotonEvent.

Exposed Value Type Default Value
public FloatUnityEvent None

Back To Top


OnCountdownStopped

UnityEvent. Called when you receive a stop countdown PhotonEvent.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnCreateRoomFailed

UnityEvent. Called when creating a photon room fails.

Exposed Value Type Default Value
public StringUnityEvent None

Back To Top


OnCreateRoomSuccess

UnityEvent. Called when creating a photon room succeeds.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnNameEnterFailed

UnityEvent. Called when entering a name for your player fails.

Exposed Value Type Default Value
public StringUnityEvent None

Back To Top


OnNameEnterSuccess

UnityEvent. Called when entering a name for your player succeeds.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnNetworkError

UnityEvent. Called when you receive a network error.

Exposed Value Type Default Value
public StringUnityEvent None

Back To Top


OnReceiveRoundTime

UnityEvent. Called when you receive an update round time PhotonEvent.

Exposed Value Type Default Value
public FloatUnityEvent None

Back To Top


OnReconnecting

UnityEvent. Called when you were disconnected from the photon server and”
are now attempting to reconnect to the last room you were in.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnResetEverything

UnityEvent. Called when you want to reset the UI back to it’s default state.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnSceneLoaded

UnityEvent. Called everytime when a unity scene is first loaded.

Exposed Value Type Default Value
public SceneEvent new SceneEvent()

Back To Top


OnStart

UnityEvent. Called only once in the OnStart method of this component.

Exposed Value Type Default Value
public UnityEvent new UnityEvent()

Back To Top


OnStartLoading

UnityEvent. Called when you have just started loading a unity scene.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnStartSession

Called when you successfully create a new session.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


OnWaitToJoinPhotonRoomsLobby

UnityEvent. Called right after you attempt to join the photon lobby.

Exposed Value Type Default Value
public UnityEvent None

Back To Top


debugging

Log everything that happens to the unity console.

Exposed Value Type Default Value
protected bool false

Back To Top


defaultLevelIndex

If you don’t set the scene to load this is the default level index it will use.

Exposed Value Type Default Value
protected int 0

Back To Top


fadeInAudio

When first loading the UI, fade in the audio.

Exposed Value Type Default Value
protected bool false

Back To Top


fadeInSpeed

If fading out your music how to fast to fade out. Higher values will fade out faster.

Exposed Value Type Default Value
protected float 0.25f

Back To Top


finalClick

The sound that will be played when you call the "PlayerFinalClick" function.

Exposed Value Type Default Value
protected AudioClip null

Back To Top


finalClickVolume

How loud to play the "finalClick" sound.

Exposed Value Type Default Value
protected float 0.5f

Back To Top


loadingBar

The loading bar.

Exposed Value Type Default Value
protected Image null

Back To Top


loadingDesc

The description text that will be set when the loading screen is displayed.

Exposed Value Type Default Value
public List new List()

Back To Top


loadingDescText

The text object that will be used to display your loading description text.

Exposed Value Type Default Value
protected Text null

Back To Top


loadingImageDisplayTime

How long to display each image before fading to the next one.

Exposed Value Type Default Value
protected float 8.0f

Back To Top


loadingImages

The image that will display when loading the screen.

Exposed Value Type Default Value
public List new List()

Back To Top


loadingPageFadeSpeed

How fast to fade the images in and out.

Exposed Value Type Default Value
protected float 0.25f

Back To Top


loadingParent

The Parent Object that holds all of the loading page transforms.

Exposed Value Type Default Value
public GameObject null

Back To Top


loadingTitle

The title text that will be set when the loading screen is displayed

Exposed Value Type Default Value
public string ””

Back To Top


loadingTitleText

The text object that will be used to display your loading title text.

Exposed Value Type Default Value
protected Text null

Back To Top


mainLoadingImage

The image that will be displaying your main loading sprite

Exposed Value Type Default Value
protected Image null

Back To Top


mouseClick

The sound that will be played when you call the "PlayerMouseClick" function.

Exposed Value Type Default Value
protected AudioClip null

Back To Top


mouseClickVolume

How loud to play the "mouseClick" sound.

Exposed Value Type Default Value
protected float 0.5f

Back To Top


mouseEnter

The sound that will be played when you call the "PlayerMouseEnter" function.

Exposed Value Type Default Value
protected AudioClip null

Back To Top


mouseEnterVolume

How loud to play the "mouseEnter" sound.

Exposed Value Type Default Value
protected float 0.5f

Back To Top


mouseExit

The sound that will be played when you call the "PlayerMouseExit" function.

Exposed Value Type Default Value
protected AudioClip null

Back To Top


mouseExitVolume

How loud to play the "mouseExit" sound.

Exposed Value Type Default Value
protected float 0.5f

Back To Top


musicSource

The audio source that will play your menu music.

Exposed Value Type Default Value
protected AudioSource null

Back To Top


sceneList

A list of SceneOptions to choose from when you want to implement “
a way for players to select the scene they would like to join.

Exposed Value Type Default Value
public List new List()

Back To Top


selectablePlayers

The complete list of players that are selectable to the end user.

Exposed Value Type Default Value
public GameObject[] new GameObject[] { }

Back To Top


soundSource

The audio source that will play your menu sounds.

Exposed Value Type Default Value
protected AudioSource null

Back To Top


startVolume

How loud to set your audio to.

Exposed Value Type Default Value
protected float 0.5f

Back To Top


teamsUpdated

Delegate. Called when any player on a team is added or removed.

Exposed Value Type Default Value
public BasicDelegate None

Back To Top


voiceViewUpdated

Delegate. Called when the voice view is updated.

Exposed Value Type Default Value
public BasicDelegate None

Back To Top

Function Definitions

Select the function name from below to jump directly to it on this page.

AddNewPlayerToPlayerReadyList
AddToTeamData
AllPlayersReady
ClearPlayerReadyDict
ClearPlayerUIs
ClearSavedRoomPassword
ClearSceneVoteList
ClearTeamData
CreatePrivateSession
CreateRandomSceneList
CreateSessionWithSavedRoomName
Disconnect
EnableChatBoxVisibility
EnableChatboxSlideOut
EnableLoadingPage
EnableMouseMovement
EnableMouseVisibility
EnableMusic
EnablePlayerAutoSpawn
EnableRoomNameChecking
EnableSavedPlayerUI
EveryoneLoadLevel
EveryoneLoadLevel
EveryoneLoadSavedLevel
FadeMusic
GetMyTeamName
GetPlayerVoiceView
GetRandomSceneNumber
GetSavedSceneToLoadName
GetSceneNumber
GetSceneVotes
GetSetPlayer
GetSetPlayerIndex
GetUserTeamName
JoinLobby
JoinPrivateRoom
JoinRandomPublicRoomOrCreateOne
JoinRoom
JoinSavedRoomName
KickPlayer
LoadSavedLevel
LoopMusic
MouseSelect
MouseSelectHandle
MouseSelectTarget
NetworkErrorOccured
PhotonEvent_AUTOSPAWN
PhotonEvent_KICKPLAYER
PhotonEvent_MAPCHANGE
PhotonEvent_RANDOMSCENELIST
PhotonEvent_READUP
PhotonEvent_ROUNDTIME
PhotonEvent_SCENEVOTE
PhotonEvent_STARTCOUNTDOWN
PhotonEvent_STARTSESSION
PhotonEvent_TEAMCHANGE
PhotonEvent_VOICEVIEW
PlayFinalClick
PlayMouseClick
PlayMouseEnter
PlayMouseExit
PlayMusic
PlayerInReadyDict
PlayerIsReady
QuitGame
RecievedPhotonEvent
ReconnectingToLastRoom
RefreshPlayerUIs
RemovePlayerToPlayerReadyList
ResetEverything
ResetLoadingBar
RestartMusic
SavePlayerName
SavePlayerUIs
SaveRoomList
SaveRoomName
SaveRoomPassword
SaveSceneToLoad
SaveSceneToLoad
SceneLoaded
SendCreatedRandomSceneList
SendEnableAutoSpawn
SendReadyState
SendRoundTime
SendSceneChangeInfo
SendSceneVote
SendStartCountdown
SendStartSession
SendStopCountdown
SendUpdateVoiceView
SetFadeToVolume
SetMusicAudio
SetMusicVolume
SetMyTeamName
SetPlayer
SetRandomSceneList
SetRoomIsJoinable
SetRoomVisibility
Start
StopMusic
SubmitSavedPlayerName
Update
VisualKickPlayer
WaitForRandomJoin


public virtual void AddNewPlayerToPlayerReadyList(Photon.Realtime.Player player)

Takes a Photon.Realtime.Player input and extracts the user id of that player and adds it to the player ready dictionary as not ready. If that player’s user id already exists in the dictionary it will make it be marked as not ready.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
player Photon.Realtime.Player type, player to put into the dictionary

Back To Top


public virtual void AddToTeamData(string userId, string teamName)

Returns the entire team data dictionary. This dictionary is a list of users ids and the teams those ids are on. Adds the user id to the team name. If that user id is already in the dictionary it will move that user id to the new team name.

Expose Value Overrideable Returns
public True Dictionary of team data
Parameter Name Description
userId string type, Photon user id
teamName string type, name of the team to join

Back To Top


public virtual bool AllPlayersReady()

Checks all the user ids in the player ready dictionary and sees if they have been marked as ready or not.

Expose Value Overrideable Returns
public True True if all user ids in the player ready dictionary are makrs as ready, otherwise false

No parameters

Back To Top


public virtual void ClearPlayerReadyDict()

Erases the entire dictionary of what players are ready.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void ClearPlayerUIs()

Remove all saved player UIs from local manipulation.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void ClearSavedRoomPassword()

Clears the _roomPassword internal variable.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void ClearSceneVoteList()

Clears the _sceneVotes dictionary so it no longer has ANY votes in it.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void ClearTeamData()

Erases the entire team data dictionary.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void CreatePrivateSession()

Attempts to create a photon room with the saved _roomName and _roomPassword variables. Calls the OnCreateRoomFailed or OnCreateRoomSuccess UnityEvents if the room creation was successfull or not.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void CreateRandomSceneList()

Populates the _randomSceneList list. This is used for players to cast votes as to what scene they would like to play at.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void CreateSessionWithSavedRoomName(bool useSavedPassword = false)

Create the initial photon room that will become the session name for your session. If you want to create a password protected room pass in true. Also will perform checks on the room name to make sure it’s valid if you have enabled the _roomNameChecking variable to be true. Calls the NetworkManager’s CreateRoom function to create the Photon room. Finally calls OnCreateRoomSuccess UnityEvent if the room creation was successfull, or calls OnCreateRoomFailed if it was not.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
useSavedPassword *No found decription

Back To Top


public virtual void Disconnect()

Calls the NetworkManager’s Disconnect function to disconnect from the photon room.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void EnableChatBoxVisibility(bool isEnabled)

Make the chatbox inactive or not. True = Can see chatbox, False = Can NOT see chatbox

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, make the chatbox visible or not?

Back To Top


public virtual void EnableChatboxSlideOut(bool isEnabled)

Make the chatbox slide in or out. True = Slide out(visible), False = Slide in(not visible)

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, True = Slide Out

Back To Top


public virtual void EnableLoadingPage(bool isEnabled)

Display the loading page UI or not.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, show the loading page?

Back To Top


public virtual void EnableMouseMovement(bool isEnabled)

Allow the mouse to be moved around or not.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, true = can move, false = cannot move

Back To Top


public virtual void EnableMouseVisibility(bool isVisible)

Hide or show the mouse.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isVisible bool type, true = show, false = hide

Back To Top


public virtual void EnableMusic(bool isEnabled)

Disables/Enables the musicSource component based on the input value.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, Enable or Disable musicSource component.

Back To Top


public virtual void EnablePlayerAutoSpawn(bool setActive)

Sets the NetworkManager’s autoSpawnPlayer value to whatever input value you use.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
setActive bool type, make the players auto spawn?

Back To Top


public virtual void EnableRoomNameChecking(bool isEnabled)

Returns the internal variable _rooms. This is just a list of potential photon rooms. Turn on valid room name checking. This makes it so rooms names can’t have invalid characters or be blank. If this is on and rooms have these it will throw an error.

Expose Value Overrideable Returns
public True Dictionary of photon rooms
Parameter Name Description
isEnabled bool type, ensure valid room names.

Back To Top


public virtual void EnableSavedPlayerUI(bool isEnabled)

Find all of the UI’s that invector provides and enable them or not.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isEnabled bool type, disable or enable the Invector provided UIs?

Back To Top


public virtual void EveryoneLoadLevel(string levelName)

Calls the NetworkManager’s NetworkLoadLevel with the sendEveryone value as true. It will load the unity scene based on the input value’s index.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
levelName string type, the scene name to find the index for

Back To Top


public virtual void EveryoneLoadLevel(int levelIndex)

Calls the NetworkManager’s NetworkLoadLevel with the sendEveryone` value as true. It will load the unity scene based on the index you pass in.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
levelIndex int type, the scene index to load

Back To Top


public virtual void EveryoneLoadSavedLevel()

Calls the NetworkManager’s NetworkLoadLevel function with the sendEveryone variable as true. It uses the previously saved level name’s index.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void FadeMusic(bool fadeOut)

Fade the musicSource in or out based on the input value. True = Fade Out, False = Fade In

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
fadeOut bool type, fade music in or out?

Back To Top


public virtual string GetMyTeamName()

Returns the string value that is stored in the NetworkManager’s teamName parameter.

Expose Value Overrideable Returns
public True string value in the teamName parameter of the NetworkManager component

No parameters

Back To Top


public virtual int GetPlayerVoiceView(string UserId)

Get the voice view of the passed in photon user id.

Expose Value Overrideable Returns
public True The photon voice view of the user id
Parameter Name Description
UserId string type, the photon user id

Back To Top


public virtual SceneOption GetRandomSceneNumber(int value)

Returns an amount of random SceneOption’s from the _randomSceneList list.

Expose Value Overrideable Returns
public True Specified number of SceneOption’s
Parameter Name Description
value int type, number of SceneOption’s to return

Back To Top


public virtual string GetSavedSceneToLoadName()

Returns the previously saved level name

Expose Value Overrideable Returns
public True the previously saved level name

No parameters

Back To Top


public virtual SceneOption GetSceneNumber(int value)

Extracts the SceneOption value from the sceneList list at the specified index.

Expose Value Overrideable Returns
public True A SceneOption value
Parameter Name Description
value int type, the index to pull from

Back To Top


public virtual int GetSceneVotes(int sceneIndex)

Returns the entire _sceneVotes dictionary which contains all the votes that people have currently cast for a scene index.

Expose Value Overrideable Returns
public True  
Parameter Name Description
sceneIndex int type, the scene index to see how many votes it has

Back To Top


public virtual GameObject GetSetPlayer()

Get the playerPrefab from the network manager.

Expose Value Overrideable Returns
public True GameObject of the player that you have set in the NetworkManager

No parameters

Back To Top


public virtual int GetSetPlayerIndex()

Returns the current selected player index that will be used to select a player later.

Expose Value Overrideable Returns
public True  

No parameters

Back To Top


public virtual string GetUserTeamName(string userId)

Finds the team name that the photon user id is a part of.

Expose Value Overrideable Returns
public True the string team name that the user id is a part of
Parameter Name Description
userId string type, the photon user id

Back To Top


public virtual void JoinLobby()

Calls the instanced NetworkManager’s JoinLobby function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void JoinPrivateRoom()

Calls the instance’d NetworkManager’s JoinRandomRoom function with the previous set internal variables _roomName and _roomPassword parameters.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void JoinRandomPublicRoomOrCreateOne()

Calls the WaitForRandomJoin IEnumerator.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void JoinRoom(string roomname)

Calls the instanceds NetworkManager’s JoinRoom function with the input value and immediately calls the OnWaitToJoinPhotonRoomsLobby UnityEvent.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
roomname string type, the name of the photon room to join

Back To Top


public virtual void JoinSavedRoomName(bool useSavedPassword)

Calls the instance’d NetworkManager’s JoinRandomRoom function with the _roomName internal variable that was saved from the SaveRoomName function. Also uses the saved _roomPassword is the input value is true. Immediately calls the OnWaitToJoinPhotonRoomsLobby UnityEvent.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
useSavedPassword bool type, use the previously set room password or join without a password?

Back To Top


public virtual void KickPlayer(string userId)

Calls the VisualKickPlayer IEnumerator wit the userId.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
userId string type, the photon user id to boot from the photon room.

Back To Top


public virtual void LoadSavedLevel()

Calls the NetworkManager’s NetworkLoadLevel function with the previously saved level name’s index.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void LoopMusic(bool setLooping)

Set the musicSource loop value.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
setLooping bool type, loop the musicSource or not?

Back To Top


public virtual void MouseSelect(GameObject target)

Calls the MouseSelectHandle IEnumerator

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
target *No found decription

Back To Top


IEnumerator MouseSelectHandle(GameObject target)

Sets the target the mouse will select based on the input target.

Expose Value Overrideable Returns
private False Does not return anything
Parameter Name Description
target GameObject type, the target for the mouse to select

Back To Top


protected virtual void MouseSelectTarget(GameObject target)

Have the mouse select the target gameobect

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
target Gameobject type, the gameobject for the mouse to select

Back To Top


public virtual void NetworkErrorOccured(string errorMessage)

Calls the OnNetworkError UnityEvent with the passed in string

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
errorMessage string type, the error message to display

Back To Top


protected virtual void PhotonEvent_AUTOSPAWN(object[] data)

Calls the SendEnableAutoSpawn function. This is a received Photon Event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_KICKPLAYER(object[] data)

Makes the receiver of this event leave the photon room with an error message. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_MAPCHANGE(object[] data)

Makes the receiver change the saved leve name and index. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_RANDOMSCENELIST(object[] data)

Makes the receiver set their _randomSceneList variable to whatever is received. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_READUP(object[] data)

Makes the user id ready up. This is a received PhotonEvent message.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_ROUNDTIME(object[] data)

Sets the round time to be whatever is received. This is a received photon event. This also calls the OnReceiveRoundTime UnityEvent.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_SCENEVOTE(object[] data)

Adds or removes a vote to the scene vote index. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_STARTCOUNTDOWN(object[] data)

Makes the receiver call the OnCountdownStarted or OnCountdownStopped UnityEvents based on the received value. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_STARTSESSION(object[] data)

Makes everyone start the session and this will make it so the RecievedPhotonEvent function will not be called anymore when receiving events from the network.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_TEAMCHANGE(object[] data)

Makes a user id change to a new team. This is a received PhotonEvent message. Also executes the teamsUpdated delegate.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


protected virtual void PhotonEvent_VOICEVIEW(object[] data)

Sets the voice view id for the user id for later referencing. Also calls the voiceViewUpdated delegate. This is a received photon event.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
data *No found decription

Back To Top


public virtual void PlayFinalClick()

Play the finalClick audio clip from the soundSource

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void PlayMouseClick()

Play the mouseClick audio clip from the soundSource

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void PlayMouseEnter()

Play the mouseEnter audio clip from the soundSource

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void PlayMouseExit()

Play the mouseExit audio clip from the soundSource

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void PlayMusic()

Starts playing the audio clip on the musicSource.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual bool PlayerInReadyDict(string userId)

Returns true if the user id is already in the player read dictionary.

Expose Value Overrideable Returns
public True true if that id is in the player ready dictionary, otherwise false.
Parameter Name Description
userId string type, photon user id

Back To Top


public virtual bool PlayerIsReady(string userId)

Returns the dictionary of users ids and if they’re ready or not Checks to see if that user id is marked as ready by looking it up in the player ready dictionary.

Expose Value Overrideable Returns
public True player ready dictionary true if the player is marked as ready in the player ready dictionary, otherwise false.
Parameter Name Description
userId string type, the photon user id

Back To Top


public virtual void QuitGame()

Quit the unity application.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


protected virtual void RecievedPhotonEvent(EventData obj)

Called when ANY photon event is received. Will find out what type of event it is and call that function. (EX: If receiving CB_EVENT_STARTSESSION photon event it will call the PhotonEvent_STARTSESSION function)

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
obj *No found decription

Back To Top


public virtual void ReconnectingToLastRoom()

Callback method. This is called whenever you’re attempting to reconnect to a photon room.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RefreshPlayerUIs()

Rebuilds the saved player UIs list.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RemovePlayerToPlayerReadyList(Photon.Realtime.Player player)

Takes a Photon.Realtime.Player input and extracts the user id of that player, finds that user id in the player ready dictionary and removes it from the dictionary.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
player Photon.Realtime.Player type, the player to remove

Back To Top


public virtual void ResetEverything()

Called when you want to reset the UI back to its default state. Will clear all parameters and attempt to reset this component back to its starting values. Also calls OnResetEverything UnityEvent for additional user-defined actions.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void ResetLoadingBar()

Sets the loadingBar to zero.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void RestartMusic()

Will start the audio clip from the beginning again on the musicSource.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SavePlayerName(string playerName)

Saves the input string as a future player name that will be used by the \ SubmitSavedPlayerName function.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
playerName string type, the player name to potentially use.

Back To Top


public virtual void SavePlayerUIs()

Find all the objects tagged with PlayerUI and save them for later manipulation.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SaveRoomList()

Populates the internal variable _rooms based on the cachedRoomList value in the NetworkManager component.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SaveRoomName(string roomName)

Stores the room name input for future use into the _roomName internal variable.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
roomName string type, the name of the photon room to save.

Back To Top


public virtual void SaveRoomPassword(string password)

Saves the input string into the _roomPassword internal variable for later use.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
password string type, the password you want to include when joining/creating rooms.

Back To Top


public virtual void SaveSceneToLoad(string levelName)

Calls SendSceneChangeInfo function with the extracted index of the scene name that you input and the scene name.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
levelName string type, the scene name to have everyone set their map choice to

Back To Top


public virtual void SaveSceneToLoad(int levelIndex)

Calls SendSceneChangeInfo with the extracts name of the scene index that you input and the index.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
levelIndex *No found decription

Back To Top


protected virtual void SceneLoaded(Scene scene, LoadSceneMode mode)

Callback method. This is called when a new Unity scene is loaded. This calls the OnSceneLoaded UnityEvent.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
scene Scene type, the Scene that was loaded
mode LoadSceneMode type, how this scene was loaded

Back To Top


public virtual void SendCreatedRandomSceneList()

Calls the CB_EVENT_RANDOMSCENELIST PhotonEvent which will make everyone set their _randomSceneList list to the value that you currently have set in your own _randomSceneList list.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendEnableAutoSpawn(bool enableSpawn)

Calls the CB_EVENT_AUTOSPAWN Photon Event. This will make it so autospawn is enabled when a new Unity scene is loaded.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
enableSpawn bool type, enable auto spawn?

Back To Top


public virtual void SendReadyState(bool isReady)

Calls the CB_EVENT_READYUP PhotonEvent. This event will make your user id be marked as ready or not based on the input value.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isReady bool type, you’re ready?

Back To Top


public virtual void SendRoundTime(float roundTime)

Calls the CB_EVENT_ROUNDTIME PhotonEvent to set the round time to whatever number is passed into this function for everyone in the photon room.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
roundTime float type, the amount of time to set the round to

Back To Top


protected virtual void SendSceneChangeInfo(string sceneName, int index)

Calls the CB_EVENT_MAPCHANGE photon event. Sets the scene name and index for all players in the photon room.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
sceneName string type, the scene name to set to
index int type, the index of this scene name

Back To Top


public virtual void SendSceneVote(int sceneIndex)

Calls the CB_EVENT_SCENEVOTE PhotonEvent which will add one to all players _sceneVotes at the index key you have specified.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
sceneIndex int type, the scene index to vote for.

Back To Top


public virtual void SendStartCountdown(float amount)

Calls the CB_EVENT_STARTCOUNTDOWN PhotonEvent, which will trigger the countdown to start. This will trigger the OnCountdownStarted UnityEvent for all players that receive this event, including yourself.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
amount float type, countdown amount

Back To Top


public virtual void SendStartSession()

Calls the CB_EVENT_STARTSESSION photon event. Which makes everyone start the photon session. Only the master client can call this method.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendStopCountdown()

Calls the CB_EVENT_STARTCOUNTDOWN PhotonEvent which will make all players, including yourself, stop the countdown process. This all triggers the OnCountdownStopped UnityEvent for everyone, including yourself.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SendUpdateVoiceView(string UserId, int ViewId)

Calls the CB_EVENT_VOICEVIEW PhotonEvent. This eventually will execute the voiceViewUpdated delegate.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
UserId *No found decription
ViewId *No found decription

Back To Top


public virtual void SetFadeToVolume(float fadeToVolume)

Set the music to fade to the selected volume next time you trigger a fade music.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
fadeToVolume float type, the volume to set the music to fade to

Back To Top


public virtual void SetMusicAudio(AudioClip clip)

Set the musicSource audio clip.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
clip AudioClip type, the clip to set the musicSource to.

Back To Top


public virtual void SetMusicVolume(float volume)

Immediately set the musicSource volume level.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
volume float type, the volume level to set the music to

Back To Top


public virtual void SetMyTeamName(string teamName = “”)

Calls the CB_EVENT_TEAMCHANGE PhotonEvent. This will set your photon user id to be on the team name that matches the input value.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
teamName string type, what team to join.

Back To Top


public virtual void SetPlayer(int index)

Will set the player according to the input index. Will choose the player to set as the playerPrefab in the NetworkManager from the selectablePlayers list.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
index int type, the index to choose from the selectablePlayers list.

Back To Top


public virtual void SetRandomSceneList(List randomRoomList)

Receives as scene list and sets it to the _randomSceneList list.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
randomRoomList *No found decription

Back To Top


public virtual void SetRoomIsJoinable(bool isJoinable)

Calls the NetworkManager’s SetRoomIsOpen function with whatever value you have specified in this function.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isJoinable bool type, make this photon room joinable?

Back To Top


public virtual void SetRoomVisibility(bool isVisible)

Make this photon room visible or not. Calls the NetworkManager’s SetRoomVisibility function with the input value specified here.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
isVisible bool type, make the photon room be in the list when people list rooms.

Back To Top


protected virtual void Start()

Sets the music volume, Adds the AddNewPlayerToPlayerReadyList and RemovePlayerToPlayerReadyList functions to the OnPlayerJoinedCurrentRoom and OnPlayerLeftCurrentRoom delegates of the NetworkManager component. Also sets up the SceneLoaded function to be called when a new scene is loaded.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


public virtual void StopMusic()

Stops playing the audio clip on the musicSource

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


public virtual void SubmitSavedPlayerName()

Calls the OnNameEnterFailed or OnNameEnterSuccess UnityEvents if the player name that was saved previously passes the tests or not. If it passes the tests it will send this player name to the NetworkManager’s SetPlayerName function.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


protected virtual void Update()

Controls music volumes, loading bars, load images, loading titles, and loading descriptions.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


IEnumerator VisualKickPlayer(string userId)

Calls the CB_EVENT_KICKPLAYER PhotonEvent. Which will force the owner of photon user id to leave the photon room.

Expose Value Overrideable Returns
private False Does not return anything
Parameter Name Description
userId string type, the owner’s user id to boot from the photon room.

Back To Top


IEnumerator WaitForRandomJoin()

Joins the Photon Lobby and attempts to find an open room that isn’t at capacity yet. If one isn’t found it will generate a new room with a random hash room name.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top