fix(NetworkRoomManagerExt): Simplified singleton

This commit is contained in:
MrGadget1024 2023-12-30 07:14:36 -05:00
parent a322f009c6
commit 1430027e99

View File

@ -14,17 +14,7 @@ public class NetworkRoomManagerExt : NetworkRoomManager
[Tooltip("Reward Prefab for the Spawner")]
public GameObject rewardPrefab;
public static new NetworkRoomManagerExt 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 static new NetworkRoomManagerExt singleton => NetworkManager.singleton as NetworkRoomManagerExt;
/// <summary>
/// This is called on the server when a networked scene finishes loading.