|
@@ -3,6 +3,7 @@ using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UI;
|
|
|
|
|
+using UnityEngine.SceneManagement;
|
|
|
|
|
|
|
|
public class DeviceBatteryView : MonoBehaviour
|
|
public class DeviceBatteryView : MonoBehaviour
|
|
|
{
|
|
{
|
|
@@ -50,7 +51,7 @@ public class DeviceBatteryView : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
try {
|
|
try {
|
|
|
if (BluetoothAim.ins.hasData) {
|
|
if (BluetoothAim.ins.hasData) {
|
|
|
- BluetoothAim.ins.WriteData("B");
|
|
|
|
|
|
|
+ BluetoothAim.ins.WriteData(SceneManager.GetActiveScene().name == "Game" ? "b" :"B");
|
|
|
}
|
|
}
|
|
|
} catch (Exception) {}
|
|
} catch (Exception) {}
|
|
|
}
|
|
}
|