the problem is part of the code

In general, the problem is on the Android game, part of the code does not work, on the PC it certainly works fine, but for some reason it does not want on the phone. Here is the actual part of the code which should work

public GameObject child
void Update()
    {
        if (GameObject.FindWithTag("detailWoodL").transform.localEulerAngles.y == 85)
        {
            conposition = true;
            Debug.Log("conected");
        }
 
        if (conected == true)
 
        {
            if (conposition == true)
            {
                child.transform.SetParent(parent);
                Destroy(child.GetComponent<Rigidbody>());
                Debug.Log("TrueandFalse");
            }

Hello.

First, the title must explain a little whats your problem about. “the problem is part of the code” is giving 0 info.

Second, as @Priyanka-Rajwanshi says, localEulerAngles components are float. You are checking if it is exatcly 85.00000 which is almost impossible to happen. if its 85.0002 it will not become true.

You need to do something like:

if (transform.localEulerAngles.y > 84 && transform.localEulerAngles.y < 86)