예제 #1
0
    private void FriendsManager_OnFriendRequest(UserData userData)
    {
        if (ready)
        {
            userUI.Init(userData);
            frendsRequestPanel.Show();

            ready = false;
        }
    }
예제 #2
0
    public void SetChatMode(bool isPublicMode)
    {
        chatManager.SetChatMode(isPublicMode);

        if (isPublicMode)
        {
            privateChat.SavePrivateMessages(privateChatUI.GetText());

            activeChatUI = publicChatUI;
            publicChatUI.SetMessageReceiver("Общий:");
        }
        else
        {
            privateChatTweener.Show();

            var userData = privateChat.MessageReceiver.Value;

            activeChatUI = privateChatUI;
            privateChatUI.Append(privateChat.GetMessages());
            privateChatUI.SetMessageReceiver($"To {userData.id} {userData.nick}: ");
        }

        activeChatUI.Activate();
    }
예제 #3
0
 public void Show(string text)
 {
     uiText.text = text;
     myTweenable.Show();
 }
예제 #4
0
    private void OnlineManager_OnUserFinded(UserData userData)
    {
        userUI.Init(userData);

        userMenuElement.Show();
    }