Table of Contents

Class GlobalPlayerData

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class GlobalPlayerData : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
Inheritance
MonoBehaviourPun
MonoBehaviourPunCallbacks
GlobalPlayerData
Implements
IConnectionCallbacks
IMatchmakingCallbacks
IInRoomCallbacks
ILobbyCallbacks
IWebRpcCallback
IErrorInfoCallback
Inherited Members
MonoBehaviourPunCallbacks.OnEnable()
MonoBehaviourPunCallbacks.OnDisable()
MonoBehaviourPunCallbacks.OnConnected()
MonoBehaviourPunCallbacks.OnLeftRoom()
MonoBehaviourPunCallbacks.OnMasterClientSwitched(Player)
MonoBehaviourPunCallbacks.OnCreatedRoom()
MonoBehaviourPunCallbacks.OnJoinedLobby()
MonoBehaviourPunCallbacks.OnLeftLobby()
MonoBehaviourPunCallbacks.OnDisconnected(DisconnectCause)
MonoBehaviourPunCallbacks.OnRegionListReceived(RegionHandler)
MonoBehaviourPunCallbacks.OnJoinedRoom()
MonoBehaviourPunCallbacks.OnPlayerLeftRoom(Player)
MonoBehaviourPunCallbacks.OnConnectedToMaster()
MonoBehaviourPunCallbacks.OnRoomPropertiesUpdate(Hashtable)
MonoBehaviourPunCallbacks.OnPlayerPropertiesUpdate(Player, Hashtable)
MonoBehaviourPunCallbacks.OnWebRpcResponse(OperationResponse)
MonoBehaviourPunCallbacks.OnErrorInfo(ErrorInfo)
MonoBehaviourPun.photonView
Extension Methods

Constructors

GlobalPlayerData()

public GlobalPlayerData()

Fields

inventory

public PlayerInventory inventory

Field Value

PlayerInventory

localVoiceVolume

public float localVoiceVolume

Field Value

float

m_instances

public static Dictionary<Player, GlobalPlayerData> m_instances

Field Value

Dictionary<Player, GlobalPlayerData>

m_photonView

public PhotonView m_photonView

Field Value

PhotonView

Methods

Awake()

public void Awake()

Cleanup()

public static void Cleanup()

OnDestroy()

public void OnDestroy()

OnPlayerEnteredRoom(Player)

public override void OnPlayerEnteredRoom(Player newPlayer)

Parameters

newPlayer Player

Start()

public void Start()

TryGetPlayerData(Player, out GlobalPlayerData)

public static bool TryGetPlayerData(Player player, out GlobalPlayerData globalPlayerData)

Parameters

player Player
globalPlayerData GlobalPlayerData

Returns

bool