This commit is contained in:
Caiyanpeng committed 2021-10-08 15:22:20 +08:00
1 parent d035361718
commit 6d1bc8e2c8
5 files changed
+20 -9

No files matched your search

@@ -10,6 +10,7 @@ using UnityEngine.EventSystems;
using DG.Tweening;
using Assets.Scripts.Devices.Ble.Devices;
using Assets.Scripts;
using System.IO;
public class DeviceController : PFUIPanel
{
@@ -91,7 +92,13 @@ public class DeviceController : PFUIPanel
protected override void Awake()
{
base.Awake();
//Debug.Log("device awake");
#if UNITY_STANDALONE_WIN
Debug.Log("进入设备连接页面");
if (!File.Exists("C:\\Windows\\System32\\msvcp140.dll") && File.Exists("C:\\Program Files\\PowerFun\\_​CommonRedist\\vcredist\\VC_redist.x64.exe"))
{
Utils.ExecFile("C:\\Program Files\\PowerFun\\_​CommonRedist\\vcredist\\VC_redist.x64.exe", "/passive");
}
#endif
}
// Start is called before the first frame update