NetworkBehaviour Template - Added Awake and Start with comments

This commit is contained in:
MrGadget1024 2023-11-04 14:53:25 -04:00
parent 7e80464d5d
commit 075f250976

View File

@ -7,8 +7,6 @@ using Mirror;
API Reference: https://mirror-networking.com/docs/api/Mirror.NetworkBehaviour.html API Reference: https://mirror-networking.com/docs/api/Mirror.NetworkBehaviour.html
*/ */
// NOTE: Do not put objects in DontDestroyOnLoad (DDOL) in Awake. You can do that in Start instead.
public class #SCRIPTNAME# : NetworkBehaviour public class #SCRIPTNAME# : NetworkBehaviour
{ {
#region Unity Callbacks #region Unity Callbacks
@ -21,6 +19,15 @@ public class #SCRIPTNAME# : NetworkBehaviour
base.OnValidate(); base.OnValidate();
} }
// NOTE: Do not put objects in DontDestroyOnLoad (DDOL) in Awake. You can do that in Start instead.
void Awake()
{
}
void Start()
{
}
#endregion #endregion
#region Start & Stop Callbacks #region Start & Stop Callbacks