mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2025-01-19 01:24:13 +01:00
fix bug
This commit is contained in:
parent
bb1c572c03
commit
8533bb1fc8
@ -26,13 +26,13 @@ public class ButtonToKey : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
private void OnCollisionEnter(Collision collision)
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 0, UIntPtr.Zero);
|
||||
lightTarget.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
private void OnCollisionExit(Collision collision)
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 2, UIntPtr.Zero);
|
||||
lightTarget.gameObject.SetActive(false);
|
||||
|
@ -26,7 +26,7 @@ public class Serial : MonoBehaviour
|
||||
ReadPack();
|
||||
if (!failed)
|
||||
TouchSetUp();
|
||||
SendTouch();
|
||||
//SendTouch();
|
||||
}
|
||||
|
||||
private void SerialStartUp()
|
||||
|
@ -14,17 +14,17 @@ public class TouchToSerial : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
//Serial.SendTouch();
|
||||
Serial.SendTouch();
|
||||
}
|
||||
|
||||
public int Area;
|
||||
private void OnCollisionEnter(Collision collision)
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
Serial.ChangeTouch((int)Area, true);
|
||||
Serial.SendTouch();
|
||||
}
|
||||
|
||||
private void OnCollisionExit(Collision collision)
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
Serial.ChangeTouch((int)Area, false);
|
||||
Serial.SendTouch();
|
||||
|
@ -16,11 +16,11 @@ PlayerSettings:
|
||||
productName: MaiDXR
|
||||
defaultCursor: {fileID: 0}
|
||||
cursorHotspot: {x: 0, y: 0}
|
||||
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
||||
m_SplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_ShowUnitySplashScreen: 1
|
||||
m_ShowUnitySplashLogo: 1
|
||||
m_SplashScreenOverlayOpacity: 1
|
||||
m_SplashScreenAnimation: 1
|
||||
m_SplashScreenAnimation: 0
|
||||
m_SplashScreenLogoStyle: 1
|
||||
m_SplashScreenDrawMode: 0
|
||||
m_SplashScreenBackgroundAnimationZoom: 1
|
||||
@ -43,7 +43,7 @@ PlayerSettings:
|
||||
m_VirtualRealitySplashScreen: {fileID: 0}
|
||||
m_HolographicTrackingLossScreen: {fileID: 0}
|
||||
defaultScreenWidth: 1024
|
||||
defaultScreenHeight: 768
|
||||
defaultScreenHeight: 1024
|
||||
defaultScreenWidthWeb: 960
|
||||
defaultScreenHeightWeb: 600
|
||||
m_StereoRenderingPath: 0
|
||||
@ -74,7 +74,7 @@ PlayerSettings:
|
||||
androidMinimumWindowWidth: 400
|
||||
androidMinimumWindowHeight: 300
|
||||
androidFullscreenMode: 1
|
||||
defaultIsNativeResolution: 1
|
||||
defaultIsNativeResolution: 0
|
||||
macRetinaSupport: 1
|
||||
runInBackground: 1
|
||||
captureSingleScreen: 0
|
||||
@ -99,7 +99,7 @@ PlayerSettings:
|
||||
xboxEnableFitness: 0
|
||||
visibleInBackground: 1
|
||||
allowFullscreenSwitch: 1
|
||||
fullscreenMode: 1
|
||||
fullscreenMode: 3
|
||||
xboxSpeechDB: 0
|
||||
xboxEnableHeadOrientation: 0
|
||||
xboxEnableGuest: 0
|
||||
@ -135,7 +135,12 @@ PlayerSettings:
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.1
|
||||
preloadedAssets: []
|
||||
preloadedAssets:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user