Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="packet"></param>
 public void HandleChatPacket(RemoteClient client, string chatMessage)
 {
     if (m_customEmotes.ContainsKey(chatMessage.ToLower()))
     {
         var animationController = client.GetComponent <Player.PlayerAnimationController>();
         animationController.PerformEmote(m_customEmotes[chatMessage.ToLower()]);
     }
     else
     {
         AddMessage(client.Username, chatMessage);
         client.SetChatLine(chatMessage);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="packet"></param>
 public void HandleChatPacket(RemoteClient client, string chatMessage)
 {
     if (m_customEmotes.ContainsKey(chatMessage.ToLower()))
     {
         var animationController = client.GetComponent<Player.PlayerAnimationController>();
         animationController.PerformEmote(m_customEmotes[chatMessage.ToLower()]);
     }
     else
     {
         AddMessage(client.Username, chatMessage);
         client.SetChatLine(chatMessage);
     }
 }