Advertisement
MrKubic

saveText

Jan 18th, 2017
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class Write_Save : MonoBehaviour {
  7.  
  8.     public Text saveText;
  9.  
  10.     public void Start()
  11.     {
  12.         saveText.GetComponent<Text>().text = PlayerPrefs.GetString("saveText");
  13.     }
  14.  
  15.     public void Update()
  16.     {
  17.         PlayerPrefs.SetString("saveText", "");
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement