Saving and loading scores in Unity3D

Advertisemen

If you want to save data in Unity3D, as an example lets say you want to save scores or some messages so you can get it later. Type the following codes inside Update function or wherever you want.

If you want to get these data later in another class or inside the same class, type the following codes inside Start function of the class. You might wanna put them in temporary variables so you can use them outside Start function. like so.

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D