mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Updated NetworkManager Template
This commit is contained in:
parent
e6c9fce37f
commit
88770f87c6
@ -10,6 +10,10 @@ using Mirror;
|
||||
|
||||
public class #SCRIPTNAME# : NetworkManager
|
||||
{
|
||||
// Overrides the base singleton so we don't
|
||||
// have to cast to this type everywhere.
|
||||
public static new PortalsNetworkManager singleton { get; private set; }
|
||||
|
||||
#region Unity Callbacks
|
||||
|
||||
public override void OnValidate()
|
||||
@ -32,6 +36,7 @@ public class #SCRIPTNAME# : NetworkManager
|
||||
/// </summary>
|
||||
public override void Start()
|
||||
{
|
||||
singleton = this;
|
||||
base.Start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user