本文整理汇总了C#中dfControl.OnMouseEnter方法的典型用法代码示例。如果您正苦于以下问题:C# dfControl.OnMouseEnter方法的具体用法?C# dfControl.OnMouseEnter怎么用?C# dfControl.OnMouseEnter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dfControl
的用法示例。
在下文中一共展示了dfControl.OnMouseEnter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setActive
private void setActive( dfInputManager manager, dfControl control, Vector2 position, Ray ray )
{
if( activeControl != null && activeControl != control )
{
activeControl.OnMouseLeave( new dfMouseEventArgs( activeControl ) { Position = position, Ray = ray } );
}
if( control != null && control != activeControl )
{
lastClickTime = 0f;
lastHoverTime = Time.realtimeSinceStartup + manager.hoverStartDelay;
control.OnMouseEnter( new dfMouseEventArgs( control ) { Position = position, Ray = ray } );
}
activeControl = control;
activeControlPosition = ( control != null ) ? control.transform.position : Vector3.one * float.MinValue;
lastPosition = position;
dragState = dfDragDropState.None;
}
示例2: setActive
private void setActive( dfControl control, Vector2 position, Ray ray )
{
if( activeControl != null && activeControl != control )
{
activeControl.OnMouseLeave( new dfMouseEventArgs( activeControl ) { Position = position, Ray = ray } );
}
if( control != null && control != activeControl )
{
lastClickTime = 0f;
lastHoverTime = Time.realtimeSinceStartup + HOVER_NOTIFICATION_BEGIN;
control.OnMouseEnter( new dfMouseEventArgs( control ) { Position = position, Ray = ray } );
}
activeControl = control;
lastPosition = position;
dragState = dfDragDropState.None;
}