mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(BasicNetManager): Removed singleton
This commit is contained in:
parent
143dede60d
commit
ae6a6355b1
@ -5,18 +5,6 @@ namespace Mirror.Examples.Basic
|
|||||||
[AddComponentMenu("")]
|
[AddComponentMenu("")]
|
||||||
public class BasicNetManager : NetworkManager
|
public class BasicNetManager : NetworkManager
|
||||||
{
|
{
|
||||||
public static new BasicNetManager 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called on the server when a client adds a new player with NetworkClient.AddPlayer.
|
/// Called on the server when a client adds a new player with NetworkClient.AddPlayer.
|
||||||
/// <para>The default implementation for this function creates a new player object from the playerPrefab.</para>
|
/// <para>The default implementation for this function creates a new player object from the playerPrefab.</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user