Table of Contents

Class Connection

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class Connection : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
Inheritance
MonoBehaviourPun
MonoBehaviourPunCallbacks
Connection
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.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

bool

findCustomSpawnPoint

public bool findCustomSpawnPoint

Field Value

bool

hasJoined

public bool hasJoined

Field Value

bool

instance

public static Connection instance

Field Value

Connection

m_Ticket

public HAuthTicket m_Ticket

Field Value

HAuthTicket

offline

public bool offline

Field Value

bool

Methods

Awake()

public void Awake()

OnConnectedToMaster()

public override void OnConnectedToMaster()

OnCreateRoomFailed(short, string)

public override void OnCreateRoomFailed(short returnCode, string message)

Parameters

returnCode short
message string

OnCustomAuthenticationFailed(string)

public override void OnCustomAuthenticationFailed(string debugMessage)

Parameters

debugMessage string

OnJoinRoomFailed(short, string)

public override void OnJoinRoomFailed(short returnCode, string message)

Parameters

returnCode short
message string

OnJoinedRoom()

public override void OnJoinedRoom()

SpawnLocalPlayer(ConnectionState)

public void SpawnLocalPlayer(ConnectionState state)

Parameters

state ConnectionState

Start()

public void Start()