using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerPrefsEx : MonoBehaviour {
public int testvalue;
void OnGui()
{
if (UnityEngine.GUI.Button (new Rect (10, 10, 150, 100), "Save"))ย
{
PlayerPrefs.SetInt ("Gold", testvalue);
}
if (GUI.Button (new Rect (10, 120, 150, 100), "Load"))ย
{
testvalue=PlayerPrefs.GetInt("Gold");
}
if (GUI.Button (new Rect (10, 230, 150, 100), "Reset"))ย
{
testvalue = 0;
}
}
}
ย ์ ๋ํฐ 5.5 ๊ฐ์ธ์ฉ์ฐ๋๋ฐย
์ ๋ ๊ฒ ํ๊ณ ์ค๋ธ์ ํธ์ ๋ฃ์ด๋ ๊ฒ์ํ๋ฉด์ GUI ๋ฒํผ์ด ํ์๊ฐ ์๋๋ค์ฌ...
์ธํฐ๋ท ๋ค ์ฐพ์๋ด๋ ํด๋ต์ด ์๋์์ ์ด๋ ๊ฒ ์ฌ๋ ค์....์ ๋ฐ..
๋๊ธ 0