Cloth problem

Hi!

I have a problem when I pause my game with an cloth object in the level. I can pause the game but when I resume the game it freezes for some seconds and then I get 2 errors and the cloth in level disappears.

PauseScript.js

var paused : boolean = false;
var Target1 : GameObject;
var Target2 : GameObject;
var Target3 : GameObject;
var texture : GUITexture;
var pause : AudioClip;
 
function Update ()
{
 
    Pause();
 
}
 
function Pause()
{
 
    if(Input.GetKeyDown("escape") && paused == false)
          {
 
         AudioSource.PlayClipAtPoint(pause, transform.position);
         //yield WaitForSeconds(0.3);
         paused = true;  
         Time.timeScale = 0;
         savedTimeScale = Time.timeScale;
           doPauseWindow = true;
           Time.timeScale = 0;
           AudioListener.volume = 0;
         Target1.GetComponent("MouseLook").enabled = false;
             Target2.GetComponent("MouseLookCamera").enabled = false;
             Target3.GetComponent("CrosshairSimple").enabled = false;
             gameObject.Find("PausetextureBlack").guiTexture.enabled = true;
             Screen.showCursor = true;
        Screen.lockCursor = false;
        texture.enabled = true;
         }
 
               else if(Input.GetKeyDown("escape") && paused == true) {
 
                paused = false;
                Time.timeScale = 1;
                  AudioListener.volume = 1;
                  AudioSource.PlayClipAtPoint(pause, transform.position);
                  Target1.GetComponent("MouseLook").enabled = true;
                  Target2.GetComponent("MouseLookCamera").enabled = true;
                  Target3.GetComponent("CrosshairSimple").enabled = true;
                  gameObject.Find("PausetextureBlack").guiTexture.enabled = false;
                  Screen.showCursor = false;
               Screen.lockCursor = true;
               texture.enabled = false;
 
    }   
 
}

Error

Waiting for one frame before enabling the cloth again worked for me.

hello, i am faced with the same question, my clothes disappear when i unpause the game.
i used GameObject.Find(“tp1”).GetComponent(InteractiveCloth).enabled = false; before i pause the game, but it doesnt work. is there anything wrong with my codes?