fix: #3632 disable EdgegapKcpTransport OnGUI 'new' warning

This commit is contained in:
mischa 2023-11-01 14:38:37 +01:00
parent a6304ded73
commit a432b7f43d

View File

@ -146,6 +146,7 @@ void OnGUIRelay()
// base OnGUI only shows in editor & development builds.
// here we always show it because we need the sessionid & userid buttons.
#pragma warning disable CS0109
new void OnGUI()
{
#if UNITY_EDITOR || DEVELOPMENT_BUILD
@ -156,5 +157,6 @@ void OnGUIRelay()
public override string ToString() => "Edgegap Kcp Transport";
}
#pragma warning restore CS0109
}
//#endif MIRROR <- commented out because MIRROR isn't defined on first import yet