23 lines
482 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |