mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour Template - Added Awake and Start with comments
This commit is contained in:
parent
7e80464d5d
commit
075f250976
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user