File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ internal void SetupIDs()
291
291
}
292
292
else if ( ThisIsASceneObjectWithThatReferencesPrefabAsset ( out prefab ) )
293
293
{
294
- if ( ! Application . isPlaying )
294
+ if ( Application . isPlaying )
295
295
{
296
296
Debug . LogWarning ( $ "[LiteNetLibIdentity] Cannot setup IDs while playing", gameObject ) ;
297
297
return ;
@@ -303,7 +303,7 @@ internal void SetupIDs()
303
303
}
304
304
else
305
305
{
306
- if ( ! Application . isPlaying )
306
+ if ( Application . isPlaying )
307
307
{
308
308
Debug . LogWarning ( $ "[LiteNetLibIdentity] Cannot setup IDs while playing", gameObject ) ;
309
309
return ;
@@ -312,7 +312,7 @@ internal void SetupIDs()
312
312
assetId = string . Empty ;
313
313
}
314
314
// Do not mark dirty while playing
315
- if ( ! Application . isPlaying && oldAssetId != assetId )
315
+ if ( ! Application . isPlaying && ! string . Equals ( oldAssetId , assetId ) )
316
316
EditorUtility . SetDirty ( this ) ;
317
317
}
318
318
#endif
You can’t perform that action at this time.
0 commit comments