예제 #1
0
        /// <inheritdoc />
        protected override void updateCoordinatesRemapper(ICoordinatesRemapper remapper)
        {
            base.updateCoordinatesRemapper(remapper);
            if (mouseHandler != null)
            {
                mouseHandler.CoordinatesRemapper = remapper;
            }
            if (touchHandler != null)
            {
                touchHandler.CoordinatesRemapper = remapper;
            }
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
            if (windows7PointerHandler != null)
            {
                windows7PointerHandler.CoordinatesRemapper = remapper;
            }
            if (windows8PointerHandler != null)
            {
                windows8PointerHandler.CoordinatesRemapper = remapper;
            }
#endif
        }
예제 #2
0
 /// <summary>
 /// Called from <see cref="CoordinatesRemapper"/> setter to update touch handlers with the new value.
 /// </summary>
 /// <param name="remapper">The new remapper.</param>
 protected virtual void updateCoordinatesRemapper(ICoordinatesRemapper remapper)
 {
 }