Esempio n. 1
0
 public virtual void OnPointerExit(int inputIndex, BasePointerParameters pointerParams, BasePointer sender)
 {
     if (debugMode)
     {
         Debug.Log(string.Format("OnPointerExit: {0}", pointerParams));
     }
 }
Esempio 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);
            }
        }
Esempio n. 3
0
    public override void OnPointerClicked(int inputIndex, GammaInput.BasePointerParameters pointerParams, GammaInput.BasePointer sender)
    {
        base.OnPointerClicked(inputIndex, pointerParams, sender);

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

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