mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
bc52ff5e62
commit
871fe9a7f4
@ -15,6 +15,13 @@ namespace Mirror
|
||||
|
||||
public abstract class Transport : MonoBehaviour
|
||||
{
|
||||
// determines if the transport is available for this platform
|
||||
// by default a transport is available in all platforms except webgl
|
||||
public virtual bool Available()
|
||||
{
|
||||
return Application.platform != RuntimePlatform.WebGLPlayer;
|
||||
}
|
||||
|
||||
// client
|
||||
[HideInInspector] public UnityEvent OnClientConnected;
|
||||
[HideInInspector] public UnityEventByteArray OnClientDataReceived;
|
||||
@ -26,14 +33,6 @@ public abstract class Transport : MonoBehaviour
|
||||
public abstract bool ClientSend(int channelId, byte[] data);
|
||||
public abstract void ClientDisconnect();
|
||||
|
||||
// determines if the transport is available for this platform
|
||||
// by default a transport is available in all platforms except webgl
|
||||
public virtual bool Available()
|
||||
{
|
||||
return Application.platform != RuntimePlatform.WebGLPlayer;
|
||||
}
|
||||
|
||||
|
||||
// server
|
||||
[HideInInspector] public UnityEventInt OnServerConnected;
|
||||
[HideInInspector] public UnityEventIntByteArray OnServerDataReceived;
|
||||
|
Loading…
Reference in New Issue
Block a user