/// <summary> /// Render a UI for the room. Override to provide your on UI /// </summary> public virtual void OnGUI() { if (!showRoomGUI) { return; } NobleRoomManager room = NetworkManager.singleton as NobleRoomManager; if (room) { if (!room.showRoomGUI) { return; } if (!NetworkManager.IsSceneActive(room.RoomScene)) { return; } DrawPlayerReadyState(); DrawPlayerReadyButton(); } }
public void CmdChangeReadyState(bool readyState) { readyToBegin = readyState; NobleRoomManager room = NetworkManager.singleton as NobleRoomManager; if (room != null) { room.ReadyStatusChanged(); } }