NetworkTransformBase: remove unnecessary connectionToServer check

This commit is contained in:
vis2k 2019-01-22 16:34:12 +01:00
parent 98b786514c
commit b3eb092878

View File

@ -325,7 +325,7 @@ void Update()
{ {
// send to server if we have local authority (and aren't the server) // send to server if we have local authority (and aren't the server)
// -> only if connectionToServer has been initialized yet too // -> only if connectionToServer has been initialized yet too
if (!isServer && hasAuthority && connectionToServer != null) if (!isServer && hasAuthority)
{ {
// check only each 'syncInterval' // check only each 'syncInterval'
if (Time.time - lastClientSendTime >= syncInterval) if (Time.time - lastClientSendTime >= syncInterval)