using UnityEngine; using System.Collections; public class MessageLogin : MonoBehaviour { void OnClick() { transform.parent.GetComponent<ScreenBase>().Hide(); } }