MissingReferenceException: The object of type ‘GameObject’ 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.
UnityEngine.GameObject.GetComponent[test2] () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineGameObject.gen.cs:35)
Spawn.testik () (at Assets/lllll/Spawn.cs:44)
blad.Update () (at Assets/lllll/blad.cs:55)
MissingReferenceException: The object of type 'GameObject' 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.
UnityEngine.GameObject.GetComponent[test2] () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineGameObject.gen.cs:35)
Spawn.testik () (at Assets/lllll/Spawn.cs:44)
blad.Update () (at Assets/lllll/blad.cs:55)