예제 #1
0
    /// <summary>
    /// Started when all clients are ready, in game state
    /// </summary>
    void Update_inGame()
    {
        if (isLocalPlayer)
        {
            //Client interface
            latency_test();

            //Chat
            if (Input.GetKeyDown(toggleChat))
            {
                msg_watcher = FindObjectOfType <Message_board_watcher>();
                if (msg_watcher != null)//Start editing
                {
                    msg_watcher.Turnon_chat();
                }
            }

            if (Input.GetKeyDown(toggleScoreBoard))
            {
                GUI.scoreBoard.SetActive(true);
                GUI.scoreBoardUpdate();
            }
            else if (Input.GetKeyUp(toggleScoreBoard))
            {
                GUI.scoreBoard.SetActive(false);
            }
        }
    }
예제 #2
0
 void Update()
 {
     if (Input.GetKeyDown(toggleChat))
     {
         Message_board_watcher msg_watcher = FindObjectOfType <Message_board_watcher>();
         if (msg_watcher != null) //Start editing
         {
             msg_watcher.Turnon_chat();
         }
     }
 }