unity中抽象函数事件BaseInputModule

来源:互联网 发布:windows msdn 编辑:程序博客网 时间:2024/06/05 20:43
using System;using System.Collections.Generic;namespace UnityEngine.EventSystems{[RequireComponent (typeof(EventSystem))]public abstract class BaseInputModule : UIBehaviour{//// Fields//[NonSerialized]protected List<RaycastResult> m_RaycastResultCache;protected BaseInput m_InputOverride;//// Properties//protected EventSystem eventSystem {get;}public BaseInput input {get;}//// Constructors//protected BaseInputModule ();//// Static Methods//protected static MoveDirection DetermineMoveDirection (float x, float y);protected static MoveDirection DetermineMoveDirection (float x, float y, float deadZone);protected static GameObject FindCommonRoot (GameObject g1, GameObject g2);protected static RaycastResult FindFirstRaycast (List<RaycastResult> candidates);//// Methods//public virtual void ActivateModule ();public virtual void DeactivateModule ();protected virtual AxisEventData GetAxisEventData (float x, float y, float moveDeadZone);protected virtual BaseEventData GetBaseEventData ();protected void HandlePointerExitAndEnter (PointerEventData currentPointerData, GameObject newEnterTarget);public virtual bool IsModuleSupported ();public virtual bool IsPointerOverGameObject (int pointerId);protected override void OnDisable ();protected override void OnEnable ();public abstract void Process ();public virtual bool ShouldActivateModule ();public virtual void UpdateModule ();}}

0 0