Beispiel #1
0
        /// <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();
            }
        }
Beispiel #2
0
        public void CmdChangeReadyState(bool readyState)
        {
            readyToBegin = readyState;
            NobleRoomManager room = NetworkManager.singleton as NobleRoomManager;

            if (room != null)
            {
                room.ReadyStatusChanged();
            }
        }