title: Enable/disable components of prefab in Unity
body: <p>As you see in the script, on destroy function I am disabling prefab's components, it goes well in the game process but after stopping the game it remains disabled, I know that the reason is that it is prefab so it saves that information but how can I disable it only when the game is being played? I've considered while loop but it crashed, also Awake function. Any ideas?</p>
  
  <pre><code>private void OnDestroy()
  {
      Lose = true;
      ENEMIES.GetComponent&lt;EnemiesMovement&gt;().unit = 0.0f;
      prefenBullet.GetComponent&lt;MeshRenderer&gt;().enabled = false;
      prefenBullet.GetComponent&lt;BoxCollider2D&gt;().enabled = false;
  }
  </code></pre>