Some small data can be obtained, transmitted, modified, and stored using txt text as media;
For example, put User1.2.3.txt in the Resources/Data file;
1. Unity3d Resources. Load to Load and obtain data.
TextAsset TXTFile = (TextAsset) Resources. load ("Data/board" + boardN. toString () + ". "+ rows. toString () + ". "+ columns. toString ());
TextAsset TXTFile = (TextAsset) Resources. Load (STR_DataBoard + boardN. ToString () + "." + rows. ToString () + "." + columns. ToString ());
If (TXTFile! = Null)
Debog. Log (TXTFile. text );
Ii. Data Storage:
// Storage path
String p = Application. dataPath + "/Resources/Data ";
TextWriter tw = new StreamWriter (Path. combine (p, "board" + 1. toString () + ". "+ 2. toString () + ". "+ 3. toString () encoded into .txt "), false, Encoding. ASCII );
// F is the data
String f = "ffffffff ";
Tw. Write (f );
Tw. Flush ();
Tw. Close ();
// Resource database. Refresh
AssetDatabase. Refresh ();