Merge branch 'main' of http://172.16.1.12/WangWeiZhi/YanCheng_Metrology
This commit is contained in:
commit
dd97946d12
|
@ -3,6 +3,7 @@ using HighlightPlus;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ÆÕͨÃÅ
|
/// ÆÕͨÃÅ
|
||||||
|
@ -31,16 +32,19 @@ public class Door : MonoBehaviour
|
||||||
|
|
||||||
private void OnMouseDown()
|
private void OnMouseDown()
|
||||||
{
|
{
|
||||||
|
if (EventSystem.current.IsPointerOverGameObject()) return;
|
||||||
isOpen = !isOpen;
|
isOpen = !isOpen;
|
||||||
transform.DOLocalRotate(dic[isOpen], duration);
|
transform.DOLocalRotate(dic[isOpen], duration);
|
||||||
}
|
}
|
||||||
private void OnMouseEnter()
|
private void OnMouseEnter()
|
||||||
{
|
{
|
||||||
|
if (EventSystem.current.IsPointerOverGameObject()) return;
|
||||||
highlightEffect.SetHighlighted(true);
|
highlightEffect.SetHighlighted(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnMouseExit()
|
private void OnMouseExit()
|
||||||
{
|
{
|
||||||
|
if (EventSystem.current.IsPointerOverGameObject()) return;
|
||||||
highlightEffect.SetHighlighted(false);
|
highlightEffect.SetHighlighted(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue