Esempio n. 1
0
 public virtual void OnInputPointerUpExternal(int inputIndex, InputPointerParameters pointerParams, InputPointer sender)
 {
     if (debugMode)
     {
         Debug.Log(string.Format("OnInputPointerUpExternal: {0}", pointerParams));
     }
 }
Esempio n. 2
0
        protected void InvokeInputPointerUpExternal(int inputIndex, InputPointerParameters inputPointerParams)
        {
            if (inputPointerParams != null)
            {
                MonoBehaviour[] targetScripts = inputPointerParams.target.GetComponents <MonoBehaviour>();

                foreach (var script in targetScripts)
                {
                    IInputPointerListener myListener = script as IInputPointerListener;
                    if (myListener != null)
                    {
                        myListener.OnInputPointerUpExternal(inputIndex, inputPointerParams, this);
                    }
                }
            }

            if (OnInputPointerUpExternal != null)
            {
                OnInputPointerUpExternal(inputIndex, inputPointerParams, this);
            }
        }
Esempio n. 3
0
 public virtual void OnInputPointer(int inputIndex, InputPointerParameters pointerParams, InputPointer sender)
 {
 }