mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: #3632 disable EdgegapKcpTransport OnGUI 'new' warning
This commit is contained in:
parent
a6304ded73
commit
a432b7f43d
@ -146,6 +146,7 @@ void OnGUIRelay()
|
|||||||
|
|
||||||
// base OnGUI only shows in editor & development builds.
|
// base OnGUI only shows in editor & development builds.
|
||||||
// here we always show it because we need the sessionid & userid buttons.
|
// here we always show it because we need the sessionid & userid buttons.
|
||||||
|
#pragma warning disable CS0109
|
||||||
new void OnGUI()
|
new void OnGUI()
|
||||||
{
|
{
|
||||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||||
@ -156,5 +157,6 @@ void OnGUIRelay()
|
|||||||
|
|
||||||
public override string ToString() => "Edgegap Kcp Transport";
|
public override string ToString() => "Edgegap Kcp Transport";
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CS0109
|
||||||
}
|
}
|
||||||
//#endif MIRROR <- commented out because MIRROR isn't defined on first import yet
|
//#endif MIRROR <- commented out because MIRROR isn't defined on first import yet
|
||||||
|
Loading…
Reference in New Issue
Block a user