Class Connection
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class Connection : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
- Inheritance
-
MonoBehaviourPunMonoBehaviourPunCallbacksConnection
- 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.OnPlayerEnteredRoom(Player)MonoBehaviourPunCallbacks.OnPlayerLeftRoom(Player)MonoBehaviourPunCallbacks.OnRoomPropertiesUpdate(Hashtable)MonoBehaviourPunCallbacks.OnPlayerPropertiesUpdate(Player, Hashtable)MonoBehaviourPunCallbacks.OnWebRpcResponse(OperationResponse)MonoBehaviourPunCallbacks.OnErrorInfo(ErrorInfo)MonoBehaviourPun.photonView
- Extension Methods
Constructors
Connection()
public Connection()
Fields
connectToGlobalDev
public bool connectToGlobalDev
Field Value
findCustomSpawnPoint
public bool findCustomSpawnPoint
Field Value
hasJoined
public bool hasJoined
Field Value
instance
public static Connection instance
Field Value
m_Ticket
public HAuthTicket m_Ticket
Field Value
- HAuthTicket
offline
public bool offline
Field Value
Methods
Awake()
public void Awake()
OnConnectedToMaster()
public override void OnConnectedToMaster()
OnCreateRoomFailed(short, string)
public override void OnCreateRoomFailed(short returnCode, string message)
Parameters
OnCustomAuthenticationFailed(string)
public override void OnCustomAuthenticationFailed(string debugMessage)
Parameters
debugMessage
string
OnJoinRoomFailed(short, string)
public override void OnJoinRoomFailed(short returnCode, string message)
Parameters
OnJoinedRoom()
public override void OnJoinedRoom()
SpawnLocalPlayer(ConnectionState)
public void SpawnLocalPlayer(ConnectionState state)
Parameters
state
ConnectionState
Start()
public void Start()