When I try to delete an instantiated (copied) Transform object from Unity, it deletes the original prefab also. When I try creating a new instance from the prefab again, I receive the following error:
MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object.
The copied objects are created with the Instantiate method with the original Transform in it:
Instantiate(laser, new Vector3 (posX, posY, 0), this.transform. rotation);
The Destroy method is called in collision check method and gets the game object for destroying:
Any advice will be helpful.