public void LaunchMoverStateProcessor() { Instance = this; dPath = Application.dataPath; FLAGS_xaya_rpc_url = MoveGUIAndGameController.Instance.rpcuser_s + ":" + MoveGUIAndGameController.Instance.rpcpassword_s + "@" + MoveGUIAndGameController.Instance.host_s + ":" + MoveGUIAndGameController.Instance.hostport_s; //Clean last session logs if (Directory.Exists(dPath + "\\..\\XayaStateProcessor\\glogs\\")) { DirectoryInfo di = new DirectoryInfo(dPath + "\\..\\XayaStateProcessor\\glogs\\"); foreach (FileInfo file in di.GetFiles()) { file.Delete(); } } StartCoroutine(StartEnum()); }
public void Disconnect() { StartCoroutine(TryAndStop()); Instance = null; }