I've got this part of script
void Update()
{
if (Pause_Menu.retryed)
{
Debug.Log(this.name);
Destroy(this);
}
}
It is attached to two object, but no matter which object exists, the first of them is still will be not destroyed and console will stay empty and the second one will be destroyed and console will has his name. What kind of problem it can be?
And also strange thing. If I'm trying destroy the first and the second externally by GameObject.Find() I will find also one of them, like second even doesn't exist, but it does.
Debug.Log(this.gameObject.name);andDestroy(this.gameObject);it doesn't change somethingPause_Menu.retryedis false.