public override void DoDiffEntityFinish(IGameEntity leftEntity, IGameEntity rightEntity)
 {
     if (currentEntityPatch.GetComponentPatchCount() > 0)
     {
         snapshotPatch.AddEntityPatch(currentEntityPatch);
     }
     //fix bug memory leak
     currentEntityPatch.ReleaseReference();
     currentEntityPatch = null;
 }
 public void OnDiffEntityFinish(IGameEntity leftEntity, IGameEntity rightEntity)
 {
     if (_currentEntityPatch.GetComponentPatchCount() > 0)
     {
         _patch.AddEntityPatch(_currentEntityPatch);
     }
     //fix bug memory leak
     _currentEntityPatch.ReleaseReference();
     _currentEntityPatch = null;
 }