Merge branch '3DBody' of http://git.zxkedu.com:33769/JiNan/VirtualFramework into 3DBody
This commit is contained in:
commit
739b998005
@ -7,6 +7,7 @@ using Turing.Core.TuringInput;
|
||||
using Turing.Samples;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using XMLTool;
|
||||
|
||||
public class Body3DObjItem : MonoBehaviour
|
||||
@ -153,6 +154,11 @@ public class Body3DObjItem : MonoBehaviour
|
||||
}
|
||||
private void OnMouseDown()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject() == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// 计算当前时间与上一次点击时间的间隔
|
||||
float currentTime = Time.time;
|
||||
if (currentTime - lastClickTime < doubleClickTimeThreshold)
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using Turing.Core.TuringInput;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class ObjectToggle : MonoBehaviour
|
||||
{
|
||||
@ -75,6 +76,10 @@ public class ObjectToggle : MonoBehaviour
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (EventSystem.current.IsPointerOverGameObject() == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// 记录鼠标按下的时间
|
||||
mouseDownTime = Time.time;
|
||||
isMouseDown = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user