Hi, i connect to my project with TNAutoJoin. I change "public bool persistent" to "true";
I create 2 buttons - Set version and Get version. I save info TNManager.SetServerData, it saved, but all my players need to save data, and i change it to SetChannelData, it save too, but after i disconnect all data a missing.... (not saving)
using UnityEngine;
using System.Collections;
using TNet;
public class GameVersion : MonoBehaviour {
private int checkVersion;
//SET SERVER VERSION
public void SetServerGameVersion () {
TNManager.SetChannelData("game version", 20161026);
}
//GET SERVER VERSION
public void GetGameVersion()
{
checkVersion = TNManager.GetChannelData<int>("game version");
print(checkVersion);
}
}