fix(android): 移动端隐藏自定义光标
This commit is contained in:
@@ -18,7 +18,11 @@ namespace AibisDream
|
||||
{
|
||||
border.SetActive(true);
|
||||
InitRefs();
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
_cursor.gameObject.SetActive(false);
|
||||
#else
|
||||
InitCursor();
|
||||
#endif
|
||||
}
|
||||
|
||||
private void InitCursor()
|
||||
@@ -34,6 +38,7 @@ namespace AibisDream
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||
// // 将虚拟指针与鼠标位置同步
|
||||
// RectTransformUtility.ScreenPointToLocalPointInRectangle(_cursorCanvas, Input.mousePosition,
|
||||
// CameraKit.Instance.uiCamera, out var worldPos);
|
||||
@@ -43,6 +48,7 @@ namespace AibisDream
|
||||
|
||||
var cursorState = CheckCursorState();
|
||||
_cursor.sprite = GetCursorSprite(cursorState);
|
||||
#endif
|
||||
}
|
||||
|
||||
private CursorStateEnum CheckCursorState()
|
||||
|
||||
Reference in New Issue
Block a user