using UnityEngine;
using System.Collections;
public class VisibleByCheckbox : MonoBehaviour
{
public UICheckbox cb;
void OnEnable()
{
NGUITools.SetActive(this.gameObject,cb.isChecked);
}
void OnDisable()
{
NGUITools.SetActive(this.gameObject,cb.isChecked);
}
}