Пример #1
0
    public static AdminReplyMessage Send(string message)
    {
        AdminReplyMessage msg = new AdminReplyMessage
        {
            Message = message
        };

        msg.Send();
        return(msg);
    }
Пример #2
0
    public static AdminReplyMessage Send(string adminId, string playerId, string message)
    {
        AdminReplyMessage msg = new AdminReplyMessage
        {
            AdminId  = adminId,
            PlayerId = playerId,
            Message  = message
        };

        msg.Send();
        return(msg);
    }
Пример #3
0
        public void OnInputEnter()
        {
            if (string.IsNullOrWhiteSpace(inputField.text))
            {
                return;
            }

            AdminReplyMessage.Send(adminID, ServerData.UserID, $"{PlayerManager.CurrentCharacterSettings.username} replied: " + inputField.text);
            Chat.AddAdminReplyMsg("PM to-<b>Admins</b>: " + inputField.text);
            inputField.text = "";

            StartCoroutine(CloseWindow());
        }
Пример #4
0
 void OnInputReceived(string message)
 {
     AdminReplyMessage.Send($"{PlayerManager.CurrentCharacterSettings.username} replied: " + message);
 }