Ejemplo n.º 1
0
 public virtual void OnPointerExit(int inputIndex, BasePointerParameters pointerParams, BasePointer sender)
 {
     if (debugMode)
     {
         Debug.Log(string.Format("OnPointerExit: {0}", pointerParams));
     }
 }
Ejemplo n.º 2
0
        protected virtual void InvokePointerExit(int inputIndex, BasePointerParameters pointerParams)
        {
            MonoBehaviour[] targetScripts = pointerParams.target.GetComponents <MonoBehaviour>();

            foreach (var script in targetScripts)
            {
                IBasePointerListener myListener = script as IBasePointerListener;
                if (myListener != null)
                {
                    myListener.OnPointerExit(inputIndex, pointerParams, this);
                }
            }

            if (OnPointerExit != null)
            {
                OnPointerExit(inputIndex, pointerParams, this);
            }
        }
Ejemplo n.º 3
0
    public override void OnPointerClicked(int inputIndex, GammaInput.BasePointerParameters pointerParams, GammaInput.BasePointer sender)
    {
        base.OnPointerClicked(inputIndex, pointerParams, sender);

        InteractionManager.instance.MoveToType(this);
    }
Ejemplo n.º 4
0
    public override void OnPointerEnter(int inputIndex, GammaInput.BasePointerParameters pointerParams, GammaInput.BasePointer sender)
    {
        base.OnPointerEnter(inputIndex, pointerParams, sender);

        InteractionManager.instance.DisplayInfoField(this);
    }
Ejemplo n.º 5
0
 public virtual void OnPointerOver(int inputIndex, BasePointerParameters pointerParams, BasePointer sender)
 {
 }
Ejemplo n.º 6
0
 public BasePointerParameters(BasePointerParameters copyParameters) : this(copyParameters.raycastHit, copyParameters.rayDepth, copyParameters.pointer, copyParameters.behindGUI)
 {
 }