Ejemplo n.º 1
0
 // Use this for initialization
 private void Awake()
 {
     SaveDataController.Init(Application.persistentDataPath, "ServerData.DATA");
     clientDic  = new Dictionary <string, string>();
     studentDic = new Dictionary <string, StudentItem>();
     DontDestroyOnLoad(gameObject);
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        id       = SystemInfo.graphicsDeviceID;
        userName = SystemInfo.deviceName;
#if UNITY_ANDROID
        userName = SystemInfo.deviceUniqueIdentifier;
#endif
        password = SystemInfo.deviceUniqueIdentifier;
        SaveDataController.Init(Application.persistentDataPath, "ClientData.DATA");
        clientConnectThread = Loom.StartSingleThread(ClientConnect, System.Threading.ThreadPriority.Normal, true);
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     SaveDataController.Init(Application.persistentDataPath, "ServerData.DATA");
     clientDic  = new Dictionary <string, string>();
     studentDic = new Dictionary <string, StudentItemView>();
 }