Why when I use OnEnable or On Disable Methods join room doesn't work ?

Hi ,I spent 1 hour and 30 minutes doesn't no why the game doesn't join the room and it stuck only in connected to master server . After long search i just read some one who talk about on Enable - On Disable methods

when i delete them from script

the game joined the room

Any one can explain why ! ?