private void Start() { view = GetComponent<NetView>(); TextMesh[] textMeshes = GetComponentsInChildren<TextMesh>(); foreach (var tm in textMeshes) { if (tm.name != "ChatInput") continue; chatInput = tm; break; } chatClient = GetComponentInChildren<ChatClient>(); InputHandler.Instance.ListenToKeyDown(CloseChat, KeyCode.Escape); InputHandler.Instance.ListenToKeyDown(OpenOrSend, KeyCode.Return); InputHandler.Instance.ListenToKeyDown(Backspace, KeyCode.Backspace); InputHandler.Instance.ListenToKey(BackspaceHold, KeyCode.Backspace); InputHandler.Instance.ListenToKeyDown(OpenReply, KeyCode.R); }
private void Start() { chatClient = FindObjectOfType<ChatClient>(); }
private void Start() { chatClient = FindObjectOfType <ChatClient>(); }