This commit is contained in:
王志勋 2025-11-04 20:57:21 +08:00
parent 5551a323fe
commit 95db87e1bd
6 changed files with 29 additions and 29 deletions

View File

@ -231,9 +231,9 @@ namespace HighlightPlus {
baseEffect.enabled = currentEffect == baseEffect;
currentEffect.SetTarget(currentObject);
if (highlightOnHover) {
Highlight(true);
}
}

View File

@ -118,15 +118,15 @@ namespace ZTools
}
if (!zCalendarController.zCalendarModel.isUnexpiredTimeCanClick)
IsUnexpiredTime(zCalendarController.nowTime, dateTime);
if (zCalendarController.zCalendarModel.autoFillDate)
{
IsCrtMonth(zCalendarController.Month);
}
if (zCalendarController.zCalendarModel.lunar)
{
lunarTxt.gameObject.SetActive(true);
SolarToLunar(dateTime);
}
}
/// <summary>
/// 关闭可点击权限

View File

@ -144,12 +144,12 @@ namespace MotionFramework
if (Contains(typeof(T)))
throw new Exception($"Game module {typeof(T)} is already existed");
// 如果没有设置优先级
if (priority == 0)
{
int minPriority = GetMinPriority();
priority = --minPriority;
}
MotionLog.Log($"Create game module : {typeof(T)}");
T module = Activator.CreateInstance<T>();

View File

@ -43,8 +43,8 @@ namespace UnityStandardAssets.Utility
// read input from mouse or mobile controls
float inputH;
float inputV;
if (relative)
{
inputH = CrossPlatformInputManager.GetAxis("Mouse X");
inputV = CrossPlatformInputManager.GetAxis("Mouse Y");
@ -92,16 +92,16 @@ namespace UnityStandardAssets.Utility
// clamp values to allowed range
m_TargetAngles.y = Mathf.Clamp(m_TargetAngles.y, -rotationRange.y*0.5f, rotationRange.y*0.5f);
m_TargetAngles.x = Mathf.Clamp(m_TargetAngles.x, -rotationRange.x*0.5f, rotationRange.x*0.5f);
}
else
{
inputH = Input.mousePosition.x;
inputV = Input.mousePosition.y;
// set values to allowed range
m_TargetAngles.y = Mathf.Lerp(-rotationRange.y*0.5f, rotationRange.y*0.5f, inputH/Screen.width);
m_TargetAngles.x = Mathf.Lerp(-rotationRange.x*0.5f, rotationRange.x*0.5f, inputV/Screen.height);
}
// smoothly interpolate current values to target angles
m_FollowAngles = Vector3.SmoothDamp(m_FollowAngles, m_TargetAngles, ref m_FollowVelocity, dampingTime);

View File

@ -147,10 +147,10 @@ namespace UnityStandardAssets.Vehicles.Car
m_HighDecel.volume = highFade*decFade;
// adjust the doppler levels
m_HighAccel.dopplerLevel = useDoppler ? dopplerLevel : 0;
m_LowAccel.dopplerLevel = useDoppler ? dopplerLevel : 0;
m_HighDecel.dopplerLevel = useDoppler ? dopplerLevel : 0;
m_LowDecel.dopplerLevel = useDoppler ? dopplerLevel : 0;
m_HighAccel.dopplerLevel = 1;
m_LowAccel.dopplerLevel = 1;
m_HighDecel.dopplerLevel = 1;
m_LowDecel.dopplerLevel = 1;
}
}
}

View File

@ -53,8 +53,8 @@ public class DragWindow : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDr
//停止拖拽
public void OnEndDrag(PointerEventData eventData)
{
if (!IgnoretheUI)
if (EventSystem.current.IsPointerOverGameObject()) return;
if (EventSystem.current.IsPointerOverGameObject()) return;
CanDrag = false;
if (isFirstDrag && transform.Find("tip"))
{