mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
If Target null check, user friendly tweak.
This commit is contained in:
parent
a652499c9d
commit
3db0e2d718
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user