private void FriendsManager_OnFriendRequest(UserData userData) { if (ready) { userUI.Init(userData); frendsRequestPanel.Show(); ready = false; } }
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(); }
public void Show(string text) { uiText.text = text; myTweenable.Show(); }
private void OnlineManager_OnUserFinded(UserData userData) { userUI.Init(userData); userMenuElement.Show(); }