Ver código fonte

修正设备模块

lvjincheng 4 anos atrás
pai
commit
42fcda49a1

+ 1 - 425
Assets/BowArrow/Scenes/Game.unity

@@ -2958,7 +2958,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   cameraComp: {fileID: 394830266}
   banRotate: 0
-  debugInEditor: 1
+  debugInEditor: 0
 --- !u!1 &408030136
 GameObject:
   m_ObjectHideFlags: 0
@@ -17314,270 +17314,6 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 0}
     m_Modifications:
-    - target: {fileID: 1375794309399013016, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_RootOrder
-      value: 6
-      objectReference: {fileID: 0}
-    - target: {fileID: 2677188513779563591, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_RootOrder
-      value: 5
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488361951293519, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488361951293519, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362036649873, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362149718586, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362297396305, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362393410545, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362476328252, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362505518322, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362558868471, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362602532502, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362609883703, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362686753207, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362686753207, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488362869047204, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
     - target: {fileID: 4155488363126191678, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
       propertyPath: m_RootOrder
       value: 7
@@ -17626,166 +17362,6 @@ PrefabInstance:
       propertyPath: m_Name
       value: BluetoothHolder
       objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363350780170, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363387583826, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363468626616, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363468626616, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363616937891, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363650090407, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363672204475, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMax.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchorMin.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_SizeDelta.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 4155488363756186604, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_AnchoredPosition.y
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 6477564169159930498, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_RootOrder
-      value: 2
-      objectReference: {fileID: 0}
-    - target: {fileID: 6477564169461050053, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
-      propertyPath: m_RootOrder
-      value: 4
-      objectReference: {fileID: 0}
     m_RemovedComponents: []
   m_SourcePrefab: {fileID: 100100000, guid: f08a06bfad2f39347ab363c87892b785, type: 3}
 --- !u!33 &4299754946339375393

+ 0 - 6
Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

@@ -181,12 +181,6 @@ public class AimHandler : MonoBehaviour
         }
     }
 
-    void OnDestroy()
-    {
-        ins = null;
-        BluetoothDispatcher.aim = null;
-    }
-
     //转换读取的数据,无符号->有符号
     float TwoByteToFloat(byte b1, byte b2) 
     {

+ 0 - 2
Assets/BowArrow/Scripts/Bluetooth/BluetoothHolder.cs

@@ -17,9 +17,7 @@ public class BluetoothHolder : MonoBehaviour
     }
 
     void Start() {
-        Debug.Log(123);
         ins = this;
-        CloseDebug();
     } 
 
     public void openDebug() {

+ 0 - 6
Assets/BowArrow/Scripts/Bluetooth/ShootCheck.cs

@@ -100,12 +100,6 @@ public class ShootCheck : MonoBehaviour
     }
 //socket
 
-    void OnDestroy()
-    {
-        ins = null;
-        BluetoothDispatcher.shoot = null;
-    }
-
     public void OnBluetoothReady(BluetoothShoot bluetoothShoot) {
         bluetoothShoot.WriteData(JsonUtility.ToJson(cmd).Replace("\"", ""));
     }

+ 3 - 5
Assets/BowArrow/Scripts/Debug/DebugText.cs

@@ -10,11 +10,9 @@ public class DebugText : MonoBehaviour
         ins = this;
     }
 
-    void OnDestroy() {
-        ins = null;
-    }
-
     public void show(string text) {
-        ins.GetComponent<Text>().text = text;
+        if (ins) {
+            ins.GetComponent<Text>().text = text;
+        }
     }
 }

+ 0 - 5
Assets/BowArrow/Scripts/Game/ArmBow.cs

@@ -28,11 +28,6 @@ public class ArmBow : MonoBehaviour
         this.readyShoot();
     }
 
-    void OnDestroy() 
-    {
-        ins = null;
-    }
-
     void FixedUpdate()
     {
         if (this.canShoot)

+ 1 - 6
Assets/BowArrow/Scripts/Game/CameraToLook.cs

@@ -5,15 +5,10 @@ using UnityEngine;
 public class CameraToLook : MonoBehaviour
 {
     public bool isNew = true;
-    public static CameraToLook ins = null;
+    public static CameraToLook ins;
 
     void Start()
     {
         ins = this;
     }
-
-    void OnDestroy() 
-    {
-        ins = null;
-    }
 }

+ 0 - 5
Assets/BowArrow/Scripts/View/ChallengeGameView.cs

@@ -15,11 +15,6 @@ public class ChallengeGameView : MonoBehaviour
         ins = this;    
     }
 
-    void OnDestroy()
-    {
-        ins = null;    
-    }
-
     public void Shoot() 
     {
         ArmBow.ins.ADS_fire();

+ 1 - 1
Assets/BowArrow/Scripts/View/HomeView.cs

@@ -20,7 +20,7 @@ public class HomeView : MonoBehaviour
             // bluetooth.AddComponent<BluetoothD>();
             DontDestroyOnLoad(bluetooth);
         }
-        if (!GameObject.Find("BluetoothHolder")) {
+        if (!BluetoothHolder.ins) {
             GameObject bluetoothHolder = Resources.Load<GameObject>("Prefabs/BluetoothHolder");
             GameObject.Instantiate(bluetoothHolder);
         }

+ 2 - 1
Assets/DebugShoot/BluetoothDispatcher.cs

@@ -21,7 +21,8 @@ public class BluetoothDispatcher : MonoBehaviour
         if (sign == 0 && aim != null)
         {
             aim(data);
-        } else if (sign == 1 && shoot != null)
+        } 
+        else if (sign == 1 && shoot != null)
         {
             shoot(data);
         }

+ 10 - 2
Assets/Resources/Prefabs/BluetoothHolder.prefab

@@ -2232,7 +2232,7 @@ MonoBehaviour:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 4155488362688281340}
-  m_Enabled: 0
+  m_Enabled: 1
   m_EditorHideFlags: 0
   m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
   m_Name: 
@@ -4958,7 +4958,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 0
+  m_IsActive: 1
 --- !u!4 &4155488363985279400
 Transform:
   m_ObjectHideFlags: 0
@@ -5422,6 +5422,14 @@ PrefabInstance:
       propertyPath: m_Layer
       value: 3
       objectReference: {fileID: 0}
+    - target: {fileID: 2057030548360447719, guid: 615af2d9be23fc54b9d22ed181782bc7, type: 3}
+      propertyPath: m_RootOrder
+      value: 3
+      objectReference: {fileID: 0}
+    - target: {fileID: 3079493496181857336, guid: 615af2d9be23fc54b9d22ed181782bc7, type: 3}
+      propertyPath: m_RootOrder
+      value: 4
+      objectReference: {fileID: 0}
     - target: {fileID: 4012154527256233961, guid: 615af2d9be23fc54b9d22ed181782bc7, type: 3}
       propertyPath: m_Layer
       value: 3