2.0004
This commit is contained in:
parent
5551a323fe
commit
95db87e1bd
|
|
@ -231,9 +231,9 @@ namespace HighlightPlus {
|
|||
baseEffect.enabled = currentEffect == baseEffect;
|
||||
currentEffect.SetTarget(currentObject);
|
||||
|
||||
if (highlightOnHover) {
|
||||
|
||||
Highlight(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
/// 关闭可点击权限
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue