Пример #1
0
    /// <summary>
    /// This menu is shown if the player has joined a channel.
    /// </summary>

    void DrawExampleMenu()
    {
        Rect rect = new Rect(0f, Screen.height - buttonHeight, 200f, buttonHeight);

        if (GUI.Button(rect, "Main Menu", button))
        {
            // Leaving the channel will cause the "OnLeaveChannel" to be sent out.
            TNManager.LeaveAllChannels();
        }
    }