Class PlayerConnection
Inheritance
PlayerConnection
Assembly: UnityEngine.dll
Syntax
[Serializable]
public class PlayerConnection : ScriptableObject, IEditorPlayerConnection
Properties
|
Improve this Doc
View Source
instance
Declaration
public static PlayerConnection instance { get; }
Property Value
|
Improve this Doc
View Source
isConnected
Declaration
public bool isConnected { get; }
Property Value
Methods
|
Improve this Doc
View Source
BlockUntilRecvMsg(Guid, Int32)
Declaration
public bool BlockUntilRecvMsg(Guid messageId, int timeout)
Parameters
Type |
Name |
Description |
Guid |
messageId |
|
Int32 |
timeout |
|
Returns
|
Improve this Doc
View Source
DisconnectAll()
Declaration
public void DisconnectAll()
|
Improve this Doc
View Source
OnEnable()
Declaration
|
Improve this Doc
View Source
Register(Guid, UnityAction<MessageEventArgs>)
Declaration
public void Register(Guid messageId, UnityAction<MessageEventArgs> callback)
Parameters
|
Improve this Doc
View Source
RegisterConnection(UnityAction<Int32>)
Declaration
public void RegisterConnection(UnityAction<int> callback)
Parameters
|
Improve this Doc
View Source
RegisterDisconnection(UnityAction<Int32>)
Declaration
public void RegisterDisconnection(UnityAction<int> callback)
Parameters
|
Improve this Doc
View Source
Send(Guid, Byte[])
Declaration
public void Send(Guid messageId, byte[] data)
Parameters
Type |
Name |
Description |
Guid |
messageId |
|
Byte[] |
data |
|
|
Improve this Doc
View Source
Unregister(Guid, UnityAction<MessageEventArgs>)
Declaration
public void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback)
Parameters
Implements
Extension Methods