Class GlobalPlayerData
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class GlobalPlayerData : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
- Inheritance
-
MonoBehaviourPunMonoBehaviourPunCallbacksGlobalPlayerData
- Implements
-
IConnectionCallbacksIMatchmakingCallbacksIInRoomCallbacksILobbyCallbacksIWebRpcCallbackIErrorInfoCallback
- 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
localVoiceVolume
public float localVoiceVolume
Field Value
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
PlayerglobalPlayerData
GlobalPlayerData