viewimage.php?id=2abcdd23dad63db0&no=29bcc427b28177a16fb3dab004c86b6f1241ce450ebd83e393e9f1bced99e72cc67a7e2ea35ff5cd454cf719cd81be193918c081b9c5991ed849


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 ๋ฒ„ํŠผ์ด ํ‘œ์‹œ๊ฐ€ ์•ˆ๋˜๋„ค์—ฌ...
์ธํ„ฐ๋„ท ๋‹ค ์ฐพ์•„๋ด๋„ ํ•ด๋‹ต์ด ์•ˆ๋‚˜์™€์„œ ์ด๋ ‡๊ฒŒ ์˜ฌ๋ ค์š”....์ œ๋ฐœ..