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