mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(ChatNetworkManager): Removed singleton
This commit is contained in:
parent
1ccf954bbd
commit
4c295a80b6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user