码迷,mamicode.com
首页 > 其他好文 > 详细

简单聊天室

时间:2014-11-26 20:45:50      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   ar   color   sp   for   on   div   

using UnityEngine;
using System.Collections;

public class Userwords : MonoBehaviour {
        
    private UIInput input;
    public UITextList textlist;

    void Start () {
    
    }
    

    void Update () {
    
    }
    void Awake()
    {
        input=this.GetComponent<UIInput>();
    }
    void OnClick()
    {
        input.value=this.transform.GetComponentInChildren<UILabel>().text;
        string chatMessage=input.value;
        textlist.Add(chatMessage);
        input.value="";
    }
}

 

简单聊天室

标签:style   blog   io   ar   color   sp   for   on   div   

原文地址:http://www.cnblogs.com/heisaijuzhen/p/4124732.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!