c# - How to save and read a text? -
i using c#
, know how save , read file, save more informations, awesome if saved file like:
player-level = 1;
player-money = 100;
etc.
use playerprefs.
example:
public class exampleclass : monobehaviour { void savescore(int score) { playerprefs.setint("player score", score); } void getscore() { print(playerprefs.getint("player score")); } }
c# unity3d
No comments:
Post a Comment