Search Unity

Lobby Hooks

Discussion in 'Editor & General Support' started by unity_1dAmo3mHlxiGXw, Mar 19, 2019.

  1. unity_1dAmo3mHlxiGXw

    unity_1dAmo3mHlxiGXw

    Joined:
    Mar 19, 2019
    Posts:
    1
    I am using Unity's Lobby Manager to change between scenes in a multiplayer client-server game, and I want to instantiate a rigid body corresponding to the player with a particular color, that chosen in the Game Lobby in the Lobby scene.

    The scripts tell me to "subclass LobbyHooks and add it to the Lobby prefab."

    Is this the LobbyManager or the chosen LobbyPlayer prefab?

    What exactly does this do? By subclass do they mean make LobbyPlayer a child of LobbyHooks or vice versa? I don't see how the latter facilitate the sharing of variables.

    How can I add LobbyHooks to the Lobby prefab (or make it the script of an otherwise empty GameObject, then attach that to the LobbyManager) when it is itself an abstract class?
     
  2. Brightfield

    Brightfield

    Joined:
    Jun 23, 2019
    Posts:
    3
    A little late, but I think you're looking for this?