Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using System;
- public class Write_Save : MonoBehaviour {
- public InputField mainInputField;
- public GameObject Pic;
- public GameObject Close;
- public void Start()
- {
- mainInputField.text = PlayerPrefs.GetString("");
- PlayerPrefs.SetString("", mainInputField.text);
- if(mainInputField.text == ""){Pic.SetActive (true);}
- }
- public void Update()
- {
- if (mainInputField.text == "")
- {
- Pic.SetActive(false);
- }
- else
- Pic.SetActive(true);
- PlayerPrefs.SetString("", mainInputField.text);
- }
- public void Click_Close()
- {
- Close.SetActive(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement