mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour: improved error message
This commit is contained in:
parent
ce803e1ea1
commit
86c482cf60
@ -44,7 +44,7 @@ public NetworkIdentity netIdentity
|
||||
m_netIdentity = m_netIdentity ?? GetComponent<NetworkIdentity>();
|
||||
if (m_netIdentity == null)
|
||||
{
|
||||
Debug.LogError("There is no NetworkIdentity on this object. Please add one.");
|
||||
Debug.LogError("There is no NetworkIdentity on " + name + ". Please add one.");
|
||||
}
|
||||
return m_netIdentity;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user