Exemple #1
0
 protected int beginTouch(Vector2 position)
 {
     if (CoordinatesRemapper != null)
     {
         position = CoordinatesRemapper.Remap(position);
     }
     return(Manager.BeginTouch(position));
 }
Exemple #2
0
 /// <summary>
 /// Remaps the coordinates using the <see cref="CoordinatesRemapper"/> if it is set.
 /// </summary>
 /// <param name="position">The position.</param>
 /// <returns>Remapped position if <see cref="CoordinatesRemapper"/> is set; the value of position argument otherwise.</returns>
 protected virtual Vector2 remapCoordinates(Vector2 position)
 {
     if (coordinatesRemapper != null)
     {
         return(coordinatesRemapper.Remap(position));
     }
     return(position);
 }