标签:style blog io ar color sp for on div
using UnityEngine; using System.Collections; public class CommonUsewords : MonoBehaviour { // private UIInput input; private GameObject mlabel; // private GameObject mlabel; void Start () { mlabel = GameObject.Find("GameUI/DlgChat/DlgBg/input/Label"); } void Update () { } void Awake() { // input = this.GetComponent<UIInput>(); } void OnClick() { // mlabel = input.GetComponent <UILabel>() // mlabel = GameObject.Find("GameUI/DlgChat/DlgBg/input/privateMark"); mlabel.GetComponent<UILabel>().text =this.transform.GetComponentInChildren<UILabel>().text; } }
标签:style blog io ar color sp for on div
原文地址:http://www.cnblogs.com/heisaijuzhen/p/4126176.html