private void RefreshCache()
 {
     if (this.cachedMesh != this.component.sharedMesh)
     {
         if (this.cachedMesh != null)
         {
             SkinnedMeshRendererCache.Add(this.cachedMesh, this.cachedRig);
         }
         this.cachedMesh = this.component.sharedMesh;
         this.cachedRig  = SkinnedMeshRendererCache.Get(this.component);
     }
 }
Ejemplo n.º 2
0
 private void RefreshCache()
 {
     if (!Object.op_Inequality((Object)this.cachedMesh, (Object)this.component.get_sharedMesh()))
     {
         return;
     }
     if (Object.op_Inequality((Object)this.cachedMesh, (Object)null))
     {
         SkinnedMeshRendererCache.Add(this.cachedMesh, this.cachedRig);
     }
     this.cachedMesh = this.component.get_sharedMesh();
     this.cachedRig  = SkinnedMeshRendererCache.Get(this.component);
 }