fix(ChatNetworkManager): Removed singleton

This commit is contained in:
MrGadget1024 2023-12-30 07:18:41 -05:00
parent 1ccf954bbd
commit 4c295a80b6

View File

@ -5,18 +5,6 @@ namespace Mirror.Examples.Chat
[AddComponentMenu("")]
public class ChatNetworkManager : NetworkManager
{
public static new ChatNetworkManager singleton { get; private set; }
/// <summary>
/// Runs on both Server and Client
/// Networking is NOT initialized when this fires
/// </summary>
public override void Awake()
{
base.Awake();
singleton = this;
}
// Called by UI element NetworkAddressInput.OnValueChanged
public void SetHostname(string hostname)
{