If Target null check, user friendly tweak.

This commit is contained in:
JesusLuvsYooh 2024-01-22 09:33:00 +00:00
parent a652499c9d
commit 3db0e2d718

View File

@ -161,6 +161,10 @@ private void CmdRegisteredHandler(NetworkConnectionToClient sender = null)
private void Awake()
{
// if null target, presume user wants to sync this object
if(target == null)
target = this.transform;
InitFullHeader();
}