ConditionsApplyButtonHandler.cs 398 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ConditionsApplyButtonHandler : MonoBehaviour {
  5. // Use this for initialization
  6. void OnClick () {
  7. if (PlayerPrefs.GetInt("FirstEnter") == 1)
  8. {
  9. transform.parent.GetComponent<ScreenBase>().Hide();
  10. }
  11. }
  12. // Update is called once per frame
  13. void Update () {
  14. }
  15. }