Turn a disconected player into a bot

Options
I'm using PhotonNetwork.InstantiateSceneObject() to create bot and when the master disconnect the bots goes to another master. But how to turn this player into a bot aswell?

Comments

  • develax
    Options
    Hi @MichelVictor,

    I'm not sure what you mean by "to turn this player into a bot"?

    In my bot components (classes) I wait for the OnMasterClientSwitched() method to be called and then enable them via:
    enabled = PhotonNetwork.IsMasterClient;