I instantiate an object using the following line:
obj_player = PhotonNetwork.Instantiate(prefab_obj_player.name, transform.position, Quaternion.identity);
Right after that line, I put this:
obj_player.GetComponent<script_playerTudo>().online = true;
The value of this variable does not change. And it's not just in this case, I'm not able to change variable values within object scripts that I instantiate by Photon.
What's happening? It's a basic reference, offline it works perfectly.