using UnityEngine;
using System.Collections;
public class NGUIMatchUIstate : MonoBehaviour {
private string text;
private bool ischecked;
public void OnChangeText (GameObject arg0)
{
// get text value
text = UIInput.current.value;
// set text value to target
UIInput texttarget = arg0.GetComponent<UIInput>();
texttarget.value = text;
//Debug Log
Debug.Log ("NGUI: " + text);
}
public void OnChangeCheckBox ()
{
// get checked value
ischecked = UIToggle.current.value;
// set checked value to target
//Debug Log
Debug.Log ("NGUI: " + ischecked);
}
}