Files
test/Assets/PerfectWorld/Scripts/Chat/TestChat.cs
T
2026-03-06 16:45:35 +07:00

23 lines
482 B
C#

using UnityEngine;
namespace BrewMonster.Scripts.Chat
{
public class TestChat : MonoSingleton<TestChat>
{
public ChatInputHandler testChat;
public string text;
protected override void Awake()
{
base.Awake();
DontDestroyOnLoad(gameObject);
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.C))
{
testChat.Send(text);
}
}
}
}