NetworkManagerTemplate - simplified singleton

This commit is contained in:
MrGadget1024 2023-11-04 12:54:26 -04:00
parent 5aca20f2d9
commit 7e80464d5d

View File

@ -12,7 +12,7 @@ public class #SCRIPTNAME# : NetworkManager
{
// Overrides the base singleton so we don't
// have to cast to this type everywhere.
public static new #SCRIPTNAME# singleton { get; private set; }
public static new #SCRIPTNAME# singleton => (#SCRIPTNAME#)NetworkManager.singleton;
/// <summary>
/// Runs on both Server and Client
@ -21,7 +21,6 @@ public class #SCRIPTNAME# : NetworkManager
public override void Awake()
{
base.Awake();
singleton = this;
}
#region Unity Callbacks