C# Class PhotonHandler, SteelX

Internal Monobehaviour that allows Photon to run an Update loop.
Inheritance: Photon.MonoBehaviour, IPhotonPeerListener
Show file Open project: andysctu/SteelX Class Usage Examples

Public Properties

Property Type Description
SP PhotonHandler,
updateInterval int
updateIntervalOnSerialize int

Protected Properties

Property Type Description
AppQuits bool
PingImplementation Type

Private Properties

Property Type Description
PingAvailableRegionsCoroutine IEnumerator

Public Methods

Method Description
FallbackSendAckThread ( ) : bool
StartFallbackSendAckThread ( ) : void
StopFallbackSendAckThread ( ) : void

Protected Methods

Method Description
Awake ( ) : void
OnApplicationPause ( bool pause ) : void

Called by Unity when the application gets paused (e.g. on Android when in background).

Some versions of Unity will give false values for pause on Android (and possibly on other platforms). Sets a disconnect timer when PhotonNetwork.BackgroundTimeout > 0.001f.

OnApplicationQuit ( ) : void

Called by Unity when the application is closed. Disconnects.

OnCreatedRoom ( ) : void
OnDestroy ( ) : void

Called by Unity when the play mode ends. Used to cleanup.

OnJoinedRoom ( ) : void
OnLevelWasLoaded ( int level ) : void

Called by Unity after a new level was loaded.

PingAvailableRegionsAndConnectToBest ( ) : void
Update ( ) : void

Private Methods

Method Description
PingAvailableRegionsCoroutine ( bool connectToBest ) : IEnumerator

Method Details

Awake() protected method

protected Awake ( ) : void
return void

FallbackSendAckThread() public static method

public static FallbackSendAckThread ( ) : bool
return bool

OnApplicationPause() protected method

Called by Unity when the application gets paused (e.g. on Android when in background).
Some versions of Unity will give false values for pause on Android (and possibly on other platforms). Sets a disconnect timer when PhotonNetwork.BackgroundTimeout > 0.001f.
protected OnApplicationPause ( bool pause ) : void
pause bool
return void

OnApplicationQuit() protected method

Called by Unity when the application is closed. Disconnects.
protected OnApplicationQuit ( ) : void
return void

OnCreatedRoom() protected method

protected OnCreatedRoom ( ) : void
return void

OnDestroy() protected method

Called by Unity when the play mode ends. Used to cleanup.
protected OnDestroy ( ) : void
return void

OnJoinedRoom() protected method

protected OnJoinedRoom ( ) : void
return void

OnLevelWasLoaded() protected method

Called by Unity after a new level was loaded.
protected OnLevelWasLoaded ( int level ) : void
level int
return void

PingAvailableRegionsAndConnectToBest() protected static method

protected static PingAvailableRegionsAndConnectToBest ( ) : void
return void

StartFallbackSendAckThread() public static method

public static StartFallbackSendAckThread ( ) : void
return void

StopFallbackSendAckThread() public static method

public static StopFallbackSendAckThread ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

Property Details

AppQuits protected static property

protected static bool AppQuits
return bool

PingImplementation protected static property

protected static Type PingImplementation
return Type

SP public static property

public static PhotonHandler, SP
return PhotonHandler,

updateInterval public property

public int updateInterval
return int

updateIntervalOnSerialize public property

public int updateIntervalOnSerialize
return int