using UnityEngine;
using TankAndHealerStudioAssets;
public class ChatBoxExample : MonoBehaviour
{
// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
public UltimateChatBox chatBox;
void Start ()
{
chatBox.OnInputFieldUpdated += ( message ) =>
{
print( $"Input Field Updated: {message}" );
};
// OR //
chatBox.OnInputFieldUpdated += OnInputFieldUpdated;
}
void OnInputFieldUpdated ( string message )
{
print( $"This also works! Input Field Updated: {message}" );
}
}