예제 #1
0
        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);
        }
예제 #2
0
 private void Start() {
     chatClient = FindObjectOfType<ChatClient>();
 }
예제 #3
0
 private void Start()
 {
     chatClient = FindObjectOfType <ChatClient>();
 }