From 871fe9a7f4d3a5583bd66fc9ebe5057985350fb2 Mon Sep 17 00:00:00 2001 From: vis2k Date: Fri, 15 Feb 2019 12:43:49 +0100 Subject: [PATCH] syntax --- Assets/Mirror/Runtime/Transport/Transport.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Assets/Mirror/Runtime/Transport/Transport.cs b/Assets/Mirror/Runtime/Transport/Transport.cs index ac85cb940..a6144e165 100644 --- a/Assets/Mirror/Runtime/Transport/Transport.cs +++ b/Assets/Mirror/Runtime/Transport/Transport.cs @@ -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;