/// <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); } }
/// <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); } }