Room Manager HUD
This class is an important component that makes up the user interface of the network manager. The user can create rooms, join rooms and view existing rooms through this interface.
Members
offsetX
veoffsetY
:These values adjust the position of the interface on the screen.
_roomNameField
ve_maxPlayers
:Holds the values of the room name and maximum number of players fields.
_isServer
:Indicates whether it is in server mode.
_showingRoomList
:Oda listesinin görüntülenip görüntülenmediğini belirtir.
_scrollPosition
:Stores the scroll position while viewing the room list.
backgroundStyle
:Defines the background style of the interface.
Methods
Unity GUI events are handled in this method. Different interfaces are shown depending on the network connection status.
Displays room creation and joining buttons.
Displays the current room's information and the "Leave Your Room" button.
Displays the room list. The server provides the room close button, and the client provides the room join button.
Creates a solid color texture of the specified dimensions and color.
Last updated