mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(AdditiveNetworkManager): Removed singleton
This commit is contained in:
parent
a425736bda
commit
143dede60d
@ -14,18 +14,6 @@ public class AdditiveNetworkManager : NetworkManager
|
|||||||
[Tooltip("Add all sub-scenes to this list")]
|
[Tooltip("Add all sub-scenes to this list")]
|
||||||
public string[] subScenes;
|
public string[] subScenes;
|
||||||
|
|
||||||
public static new AdditiveNetworkManager 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnStartServer()
|
public override void OnStartServer()
|
||||||
{
|
{
|
||||||
base.OnStartServer();
|
base.OnStartServer();
|
||||||
|
Loading…
Reference in New Issue
Block a user