Compare commits
No commits in common. "79774504bd102f97dc097ff8dafc1aee1f5e2531" and "560a7d745fe4f1eb388c3d37297b6ae3a6a596cb" have entirely different histories.
79774504bd
...
560a7d745f
@ -7,7 +7,6 @@ using Turing.Core.TuringInput;
|
||||
using Turing.Samples;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using XMLTool;
|
||||
|
||||
public class Body3DObjItem : MonoBehaviour
|
||||
@ -154,11 +153,6 @@ public class Body3DObjItem : MonoBehaviour
|
||||
}
|
||||
private void OnMouseDown()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject() == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// 计算当前时间与上一次点击时间的间隔
|
||||
float currentTime = Time.time;
|
||||
if (currentTime - lastClickTime < doubleClickTimeThreshold)
|
||||
|
||||
@ -5,7 +5,6 @@ using System.Collections.Generic;
|
||||
using Turing.Core.TuringInput;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class ObjectToggle : MonoBehaviour
|
||||
{
|
||||
@ -76,10 +75,6 @@ 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