com.xrlab.labframe_brainbit 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +27 -0
- package/.github/workflows/main.yml.meta +7 -0
- package/Editor/BrainBitPostProcess.cs +31 -0
- package/Editor/BrainBitPostProcess.cs.meta +11 -0
- package/Editor.meta +8 -0
- package/LICENSE +21 -0
- package/LICENSE.meta +7 -0
- package/README.md +95 -0
- package/README.md.meta +7 -0
- package/Runtime/Plugins/Android/AndroidManifest.xml +15 -0
- package/Runtime/Plugins/Android/AndroidManifest.xml.meta +7 -0
- package/Runtime/Plugins/Android.meta +8 -0
- package/Runtime/Plugins.meta +8 -0
- package/Runtime.meta +8 -0
- package/Scripts/BrainBitData.cs +187 -0
- package/Scripts/BrainBitData.cs.meta +11 -0
- package/Scripts/BrainBitManager.cs +802 -0
- package/Scripts/BrainBitManager.cs.meta +11 -0
- package/Scripts/Brainbit.asmdef +18 -0
- package/Scripts/Brainbit.asmdef.meta +7 -0
- package/Scripts/BrainbitCheckController.cs +669 -0
- package/Scripts/BrainbitCheckController.cs.meta +11 -0
- package/Scripts/Resource/Config/BrainBitConfig.cs +51 -0
- package/Scripts/Resource/Config/BrainBitConfig.cs.meta +11 -0
- package/Scripts/Resource/Config.meta +8 -0
- package/Scripts/Resource/IManagers/BrainBitController.prefab +46 -0
- package/Scripts/Resource/IManagers/BrainBitController.prefab.meta +7 -0
- package/Scripts/Resource/IManagers.meta +8 -0
- package/Scripts/Resource.meta +8 -0
- package/Scripts/Sample/SampleScene.unity +4556 -0
- package/Scripts/Sample/SampleScene.unity.meta +7 -0
- package/Scripts/Sample.meta +8 -0
- package/Scripts.meta +8 -0
- package/package.json +28 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
using System.Collections;
|
|
3
|
+
using System.Collections.Generic;
|
|
4
|
+
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// BrainBit 設備配置
|
|
7
|
+
/// </summary>
|
|
8
|
+
public class BrainBitConfig
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// 啟動時自動開啟連線
|
|
12
|
+
/// </summary>
|
|
13
|
+
public bool AutoConnectOnInit = false;
|
|
14
|
+
|
|
15
|
+
/// <summary>
|
|
16
|
+
/// 是否顯示斷線通知
|
|
17
|
+
/// </summary>
|
|
18
|
+
public bool DisconnectNotification = true;
|
|
19
|
+
|
|
20
|
+
/// <summary>
|
|
21
|
+
/// 掃描設備的超時時間(秒)
|
|
22
|
+
/// </summary>
|
|
23
|
+
public float ScanTimeoutSeconds = 10.0f;
|
|
24
|
+
|
|
25
|
+
/// <summary>
|
|
26
|
+
/// 阻抗警告閾值(歐姆)
|
|
27
|
+
/// 超過此值會顯示警告
|
|
28
|
+
/// </summary>
|
|
29
|
+
public double ImpedanceWarningThreshold = 200000.0;
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
/// 自動重連嘗試次數
|
|
33
|
+
/// </summary>
|
|
34
|
+
public int AutoReconnectAttempts = 3;
|
|
35
|
+
|
|
36
|
+
/// <summary>
|
|
37
|
+
/// 重連間隔時間(秒)
|
|
38
|
+
/// </summary>
|
|
39
|
+
public float ReconnectIntervalSeconds = 2.0f;
|
|
40
|
+
|
|
41
|
+
/// <summary>
|
|
42
|
+
/// 自動選擇信號最強的設備
|
|
43
|
+
/// </summary>
|
|
44
|
+
public bool AutoSelectBestSignal = false;
|
|
45
|
+
|
|
46
|
+
/// <summary>
|
|
47
|
+
/// 連接前等待時間(秒)
|
|
48
|
+
/// 停止掃描後等待一段時間再建立連接
|
|
49
|
+
/// </summary>
|
|
50
|
+
public float ConnectDelaySeconds = 1.0f;
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1 &6820098195033988616
|
|
4
|
+
GameObject:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
serializedVersion: 6
|
|
10
|
+
m_Component:
|
|
11
|
+
- component: {fileID: 3889620225427285287}
|
|
12
|
+
- component: {fileID: 6289406933837027959}
|
|
13
|
+
m_Layer: 0
|
|
14
|
+
m_Name: BrainBitController
|
|
15
|
+
m_TagString: Untagged
|
|
16
|
+
m_Icon: {fileID: 0}
|
|
17
|
+
m_NavMeshLayer: 0
|
|
18
|
+
m_StaticEditorFlags: 0
|
|
19
|
+
m_IsActive: 1
|
|
20
|
+
--- !u!4 &3889620225427285287
|
|
21
|
+
Transform:
|
|
22
|
+
m_ObjectHideFlags: 0
|
|
23
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
+
m_PrefabInstance: {fileID: 0}
|
|
25
|
+
m_PrefabAsset: {fileID: 0}
|
|
26
|
+
m_GameObject: {fileID: 6820098195033988616}
|
|
27
|
+
serializedVersion: 2
|
|
28
|
+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
29
|
+
m_LocalPosition: {x: 1247.5477, y: 674.2081, z: -5.855819}
|
|
30
|
+
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
31
|
+
m_ConstrainProportionsScale: 0
|
|
32
|
+
m_Children: []
|
|
33
|
+
m_Father: {fileID: 0}
|
|
34
|
+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
+
--- !u!114 &6289406933837027959
|
|
36
|
+
MonoBehaviour:
|
|
37
|
+
m_ObjectHideFlags: 0
|
|
38
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
39
|
+
m_PrefabInstance: {fileID: 0}
|
|
40
|
+
m_PrefabAsset: {fileID: 0}
|
|
41
|
+
m_GameObject: {fileID: 6820098195033988616}
|
|
42
|
+
m_Enabled: 1
|
|
43
|
+
m_EditorHideFlags: 0
|
|
44
|
+
m_Script: {fileID: 11500000, guid: 35dec3a188f551242a72a37d1f5fc8c2, type: 3}
|
|
45
|
+
m_Name:
|
|
46
|
+
m_EditorClassIdentifier:
|