using System.Collections; using System.Collections.Generic; using UnityEngine; public class ConditionsApplyButtonHandler : MonoBehaviour { // Use this for initialization void OnClick () { if (PlayerPrefs.GetInt("FirstEnter") == 1) { transform.parent.GetComponent().Hide(); } } // Update is called once per frame void Update () { } }