using UnityEngine;
using System.Collections;
public class chart_to_chart : MonoBehaviour {
public UIInput input;
public UITextList textList;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown (KeyCode.C)){
textList.Clear ();
}
}
public void Chart(){
textList .Add (input.value);
input.value ="";
}
}
using System.Collections;
public class chart_to_chart : MonoBehaviour {
public UIInput input;
public UITextList textList;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown (KeyCode.C)){
textList.Clear ();
}
}
public void Chart(){
textList .Add (input.value);
input.value ="";
}
}
本文详细解读了C#编程中的chart_to_chart类,包括其初始化、更新逻辑以及关键方法如Clear和Chart的实现。通过实例演示,帮助开发者更好地理解并应用此类在实际项目中。
4万+

被折叠的 条评论
为什么被折叠?



